📄 example.mdl
字号:
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "example"
Location [2, 82, 1253, 775]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [210, 629, 215, 691]
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Gain
Name "Gain"
Position [930, 410, 960, 440]
Gain "-1"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [765, 628, 770, 692]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [730, 149, 760, 181]
Location [6, 56, 1030, 743]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "3"
YMin "-0.35"
YMax "0.4"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [710, 709, 740, 741]
Location [6, 62, 1027, 737]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "5"
YMax "50"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [655, 534, 685, 566]
Location [6, 56, 1030, 743]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-1250"
YMax "1500"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [650, 584, 680, 616]
Location [172, 63, 550, 313]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-7.5e+006"
YMax "7.5e+006"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [735, 209, 765, 241]
Location [6, 56, 1030, 743]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-4"
YMax "3"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope6"
Ports [1]
Position [635, 284, 665, 316]
Location [217, 214, 760, 725]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-4"
YMax "4"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope7"
Ports [1]
Position [935, 279, 965, 311]
Location [5, 54, 1029, 741]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-1750"
YMax "1500"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [3, 3]
Position [295, 630, 335, 690]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Subsystem"
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 258, 45, 272]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In2"
Position [365, 373, 395, 387]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In3"
Position [585, 438, 615, 452]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Gain
Name "Gain"
Position [180, 175, 210, 205]
Gain "10"
}
Block {
BlockType Gain
Name "Gain1"
Position [355, 175, 385, 205]
Gain "28"
}
Block {
BlockType Gain
Name "Gain2"
Position [440, 245, 470, 275]
Orientation "left"
Gain "-1"
}
Block {
BlockType Gain
Name "Gain3"
Position [760, 405, 790, 435]
Orientation "left"
Gain "-8/3"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [280, 175, 310, 205]
InitialCondition "4.5:0.5:29"
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [465, 175, 495, 205]
InitialCondition "5.5:0.5:30"
}
Block {
BlockType Integrator
Name "Integrator2"
Ports [1, 1]
Position [760, 295, 790, 325]
InitialCondition "6.5:0.5:31"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [372, 430, 428, 465]
Orientation "up"
NamePlacement "alternate"
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [595, 282, 630, 338]
NamePlacement "alternate"
RndMeth "Floor"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [145, 180, 165, 200]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [4, 1]
Position [415, 180, 445, 210]
ShowName off
IconShape "round"
Inputs "|+-++"
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [695, 300, 715, 320]
ShowName off
IconShape "round"
Inputs "|+++"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [235, 185, 255, 205]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Outport
Name "Out1"
Position [365, 63, 395, 77]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [600, 183, 630, 197]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out3"
Position [840, 303, 870, 317]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, 85; -211, 0; 0, -60]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, 135]
Branch {
Points [0, 155]
DstBlock "Product"
DstPort 1
}
Branch {
DstBlock "Product1"
DstPort 2
}
}
Branch {
Points [-5, 0; 0, -120]
DstBlock "Out1"
DstPort 1
}
}
Line {
SrcBlock "Integrator1"
SrcPort 1
Points [-5, 0; 20, 0]
Branch {
DstBlock "Out2"
DstPort 1
}
Branch {
Points [0, 70]
Branch {
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [0, 35]
Branch {
Points [0, 15; -410, 0; 0, -120]
DstBlock "Sum"
DstPort 1
}
Branch {
DstBlock "Product1"
DstPort 1
}
}
}
}
Line {
SrcBlock "Integrator2"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Out3"
DstPort 1
}
Branch {
Points [0, 110]
Branch {
Points [0, 60]
DstBlock "Product"
DstPort 2
}
Branch {
DstBlock "Gain3"
DstPort 1
}
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [19, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [-26, 0]
DstBlock "Sum1"
DstPort 3
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Integrator2"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [-71, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [49, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
Points [30, 0]
DstBlock "Sum1"
DstPort 4
}
Line {
SrcBlock "In3"
SrcPort 1
Points [85, 0]
DstBlock "Sum2"
DstPort 3
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 5]
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [0, -5]
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [195, 0]
DstBlock "Sum3"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [3, 1]
Position [555, 474, 595, 546]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Subsystem1"
Location [2, 82, 1014, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 93, 45, 107]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In2"
Position [20, 138, 50, 152]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In3"
Position [15, 220, 50, 240]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [615, 140, 645, 170]
InitialCondition "ones(50,1)"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [215, 76, 260, 109]
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [210, 136, 255, 169]
NamePlacement "alternate"
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [210, 221, 255, 254]
NamePlacement "alternate"
RndMeth "Floor"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -