📄 control.mdl
字号:
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [455, 52, 485, 83]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [215, 137, 245, 168]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [455, 132, 485, 163]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [1, 2]
Position [125, 75, 165, 135]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem1"
Location [152, 295, 617, 552]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "r"
Position [25, 108, 55, 122]
IconDisplay "Port number"
}
Block {
BlockType Gain
Name "Gain1"
Position [165, 175, 195, 205]
Orientation "left"
NamePlacement "alternate"
Gain "-6"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [295, 205, 325, 235]
Orientation "left"
NamePlacement "alternate"
Gain "-8"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [170, 105, 200, 135]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [295, 105, 325, 135]
IgnoreLimit off
}
Block {
BlockType Sum
Name "Sum of\nElements2"
Ports [3, 1]
Position [85, 103, 95, 177]
Inputs "+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "W(1)1"
Position [410, 113, 440, 127]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "W(1)2"
Position [320, 28, 350, 42]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "r"
SrcPort 1
Points [0, 0]
DstBlock "Sum of\nElements2"
DstPort 1
}
Line {
SrcBlock "Sum of\nElements2"
SrcPort 1
Points [15, 0; 0, -20]
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [0, 0; 45, 0]
Branch {
DstBlock "Integrator1"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "W(1)2"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Integrator1"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock "W(1)1"
DstPort 1
}
Branch {
Points [0, 100]
DstBlock "Gain2"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [-95, 0; 0, -25]
DstBlock "Sum of\nElements2"
DstPort 3
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [-240, 0; 0, -80]
DstBlock "Sum of\nElements2"
DstPort 2
}
}
}
Block {
BlockType Sum
Name "Sum of\nElements2"
Ports [2, 1]
Position [535, 64, 545, 151]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "ctw1"
Position [615, 103, 645, 117]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "u"
SrcPort 1
Points [45, 0]
DstBlock "Subsystem1"
DstPort 1
}
Line {
SrcBlock "e0"
SrcPort 1
Points [0, 0; 95, 0]
Branch {
Points [25, 0; 0, 15]
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, 125]
DstBlock "Product2"
DstPort 2
}
}
Line {
SrcBlock "Subsystem1"
SrcPort 1
Points [40, 0]
Branch {
Points [0, -25]
DstBlock "Product"
DstPort 2
}
Branch {
Labels [1, 0]
Points [205, 0; 0, -15]
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "Integrator1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 0]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Subsystem1"
SrcPort 2
Points [10, 0; 0, 25; 15, 0]
Branch {
DstBlock "Product2"
DstPort 1
}
Branch {
Points [0, -30; 225, 0; 0, 25]
DstBlock "Product3"
DstPort 1
}
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Integrator2"
DstPort 1
}
Line {
SrcBlock "Integrator2"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 0]
DstBlock "Product3"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [15, 0; 0, 15]
DstBlock "Sum of\nElements2"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [15, 0; 0, -20]
DstBlock "Sum of\nElements2"
DstPort 2
}
Line {
SrcBlock "Sum of\nElements2"
SrcPort 1
Points [0, 0]
DstBlock "ctw1"
DstPort 1
}
Annotation {
Position [43, 104]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "u"
Position [46, 106]
UseDisplayTextAsClickCallback off
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [715, 80, 735, 100]
ShowName off
IconShape "round"
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum of\nElements"
Ports [3, 1]
Position [95, 20, 110, 160]
ShowName off
Inputs "+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum of\nElements1"
Ports [4, 1]
Position [230, 202, 240, 288]
Inputs "++++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "Sum of\nElements"
DstPort 1
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
DstBlock "Sum of\nElements"
DstPort 2
}
Line {
SrcBlock "Sine Wave2"
SrcPort 1
DstBlock "Sum of\nElements"
DstPort 3
}
Line {
SrcBlock "Sum of\nElements"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "M(S)"
DstPort 1
}
Branch {
DstBlock "Subsystem3"
DstPort 1
}
}
Line {
SrcBlock "M(S)"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [55, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, 255]
Branch {
DstBlock "Subsystem4"
DstPort 2
}
Branch {
Points [0, 35]
Branch {
DstBlock "Subsystem6"
DstPort 1
}
Branch {
Points [0, 85; -35, 0]
Branch {
DstBlock "Subsystem5"
DstPort 2
}
Branch {
Points [0, 35; -640, 0]
DstBlock "Subsystem3"
DstPort 2
}
}
}
}
}
Line {
Labels [0, 0]
SrcBlock "P(S)"
SrcPort 1
Points [225, 0]
Branch {
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, 70]
Branch {
DstBlock "Subsystem4"
DstPort 1
}
Branch {
DstBlock "Subsystem5"
DstPort 1
}
}
}
Line {
Labels [0, 0]
SrcBlock "Sum of\nElements1"
SrcPort 1
Points [140, 0]
Branch {
DstBlock "P(S)"
DstPort 1
}
Branch {
Points [0, 165]
DstBlock "Subsystem6"
DstPort 2
}
}
Line {
SrcBlock "Subsystem4"
SrcPort 1
Points [-450, 0]
DstBlock "Sum of\nElements1"
DstPort 4
}
Line {
SrcBlock "Subsystem3"
SrcPort 1
DstBlock "Sum of\nElements1"
DstPort 1
}
Line {
SrcBlock "Subsystem5"
SrcPort 1
Points [-480, 0; 0, -215]
DstBlock "Sum of\nElements1"
DstPort 2
}
Line {
SrcBlock "Subsystem6"
SrcPort 1
Points [-100, 0; 0, -140]
DstBlock "Sum of\nElements1"
DstPort 3
}
Annotation {
Name "yp"
Position [644, 225]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "r"
Position [174, 81]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "u"
Position [285, 227]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "e0"
Position [817, 82]
UseDisplayTextAsClickCallback off
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -