📄 control system.mdl
字号:
BlockType Fcn
Name "Fcn1"
Position [205, 101, 285, 129]
ShowName off
Expr "u[3]-u[1]^2/u[2]"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [135, 43, 140, 127]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Constant
Name "a"
Position [40, 23, 90, 57]
ShowName off
Value "0.2037"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "a1"
Position [40, 109, 90, 141]
ShowName off
Value "0.005974"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "a2"
Position [40, 69, 90, 101]
ShowName off
Value "0.005974"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "A"
Position [305, 43, 335, 57]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "B"
Position [310, 108, 340, 122]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "a"
SrcPort 1
Points [0, 15]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "a2"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "a1"
SrcPort 1
Points [0, -10]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
Points [0, 30]
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Fcn"
DstPort 1
}
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "A"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
Points [0, 0]
DstBlock "B"
DstPort 1
}
Annotation {
Name "lm"
Position [25, 42]
}
Annotation {
Name "lr"
Position [27, 129]
}
Annotation {
Name "ls"
Position [26, 84]
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [340, 201, 365, 254]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "delta_Urd"
Position [395, 88, 425, 102]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "delta_Urq"
Position [415, 223, 445, 237]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Subsystem"
SrcPort 2
Points [0, 0; 25, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, 175]
DstBlock "Product1"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "irq"
SrcPort 1
DstBlock "Product"
DstPort 3
}
Line {
SrcBlock "Product"
SrcPort 1
Points [0, 0]
DstBlock "delta_Urd"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0]
DstBlock "delta_Urq"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [25, 0; 0, 30]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [25, 0; 0, -30]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [105, 0; 0, 120]
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "ird"
SrcPort 1
DstBlock "Product1"
DstPort 3
}
Line {
SrcBlock "ws"
SrcPort 1
Points [0, 5; 110, 0]
Branch {
Points [0, 85]
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, 0]
Branch {
Points [0, -90]
DstBlock "Product"
DstPort 2
}
Branch {
DstBlock "Product2"
DstPort 2
}
}
}
Line {
SrcBlock "phi_s"
SrcPort 1
DstBlock "Product2"
DstPort 3
}
}
}
Block {
BlockType SubSystem
Name "Subsystem2"
Ports [2, 1]
Position [385, 470, 425, 510]
Orientation "left"
ShowName off
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Subsystem2"
Location [392, 156, 667, 267]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "us"
Position [220, 28, 250, 42]
Orientation "left"
NamePlacement "alternate"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "w1"
Position [220, 73, 250, 87]
Orientation "left"
NamePlacement "alternate"
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Fcn
Name "Fcn"
Position [90, 40, 150, 70]
Orientation "left"
NamePlacement "alternate"
ShowName off
Expr "u[1]/u[2]"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [180, 36, 185, 74]
Orientation "left"
NamePlacement "alternate"
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "phi_s"
Position [25, 48, 55, 62]
Orientation "left"
NamePlacement "alternate"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "phi_s"
DstPort 1
}
Line {
SrcBlock "us"
SrcPort 1
Points [-5, 0; 0, 10]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "w1"
SrcPort 1
Points [-5, 0; 0, -15]
DstBlock "Mux"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Subsystem3"
Ports [3, 2]
Position [300, 64, 345, 136]
ShowName off
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Subsystem3"
Location [2, 74, 1014, 743]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "isd"
Position [25, 38, 55, 52]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "phi_s"
Position [25, 68, 55, 82]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "isq"
Position [30, 138, 60, 152]
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "1/lm"
Position [220, 44, 295, 76]
NamePlacement "alternate"
Gain "1/0.2037"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
ParamDataTypeStr "Inherit: Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [160, 30, 185, 90]
ShowName off
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "ls"
Position [80, 29, 145, 61]
NamePlacement "alternate"
Gain "0.005974"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
ParamDataTypeStr "Inherit: Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "ls/lm"
Position [80, 123, 200, 157]
NamePlacement "alternate"
Gain "0.005974/0.2037"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
Paramete
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -