📄 control system.mdl
字号:
Name "Gain3"
Position [745, 240, 770, 270]
Orientation "left"
NamePlacement "alternate"
ShowName off
Gain "2"
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 Reference
Name "Machines\nMeasurement\nDemux1"
Ports [1, 3]
Position [1060, 211, 1100, 299]
Orientation "left"
NamePlacement "alternate"
ShowName off
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Machines/Machines\nMeasurement\nDemux"
SourceType "Machine measurements"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
machType "Asynchronous"
ssm1 on
ssm2 on
ssm3 on
ssm4 on
ssm5 on
ssm6 on
sm1 off
sm2 off
sm3 off
sm4 off
sm5 off
sm6 off
sm7 on
sm8 off
sm9 off
sm10 off
sm11 off
sm115 off
sm12 off
sm13 off
sm14 off
asm1 off
asm2 on
asm3 off
asm4 off
asm5 off
asm6 off
asm7 off
asm8 off
asm9 on
asm10 off
asm11 on
pmsm1 on
pmsm2 on
pmsm3 on
pmsm4 off
pmsm5 on
pmsm6 on
pmsm7 on
lastType "1"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [2, 1]
Position [725, 276, 755, 309]
Orientation "left"
NamePlacement "alternate"
ShowName off
Operator "mod"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Memory
Name "Memory1"
Position [1140, 204, 1160, 226]
Orientation "left"
ShowName off
}
Block {
BlockType Memory
Name "Memory2"
Position [995, 369, 1015, 391]
Orientation "left"
ShowName off
}
Block {
BlockType Memory
Name "Memory3"
Position [980, 449, 1000, 471]
Orientation "left"
ShowName off
}
Block {
BlockType Memory
Name "Memory7"
Position [745, 69, 765, 91]
ShowName off
}
Block {
BlockType Memory
Name "Memory8"
Position [750, 114, 770, 136]
ShowName off
}
Block {
BlockType Reference
Name "PID Controller"
Ports [1, 1]
Position [465, 65, 495, 95]
ShowName off
SourceBlock "simulink_extras/Additional\nLinear/PID Controller"
SourceType "PID Controller"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
P "1000"
I "1000"
D "0"
}
Block {
BlockType Reference
Name "PID Controller1"
Ports [1, 1]
Position [465, 110, 495, 140]
ShowName off
SourceBlock "simulink_extras/Additional\nLinear/PID Controller"
SourceType "PID Controller"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
P "1000"
I "1000"
D "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [6]
Position [1130, 82, 1165, 163]
BackgroundColor "green"
ShowName off
Floating off
Location [5, 40, 1029, 762]
Open off
NumInputPorts "6"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
axes6 "%<SignalLabel>"
}
TimeRange "1"
YMin "0~0~0~0~0~0"
YMax "1~1~1~1~1~1"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [545, 264, 575, 296]
Orientation "left"
BackgroundColor "green"
NamePlacement "alternate"
ShowName off
Floating off
Location [5, 40, 1029, 762]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "1"
YMin "-8"
YMax "8"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [2]
Position [170, 191, 200, 224]
Orientation "left"
BackgroundColor "green"
NamePlacement "alternate"
ShowName off
Floating off
Location [5, 40, 1029, 762]
Open off
NumInputPorts "2"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "0.7000000000000001"
YMin "-150~-450"
YMax "800~300"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope4"
Ports [2]
Position [455, 26, 485, 59]
Orientation "left"
BackgroundColor "green"
NamePlacement "alternate"
ShowName off
Floating off
Location [5, 40, 1029, 762]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
TimeRange "1"
YMin "-90000~-55000"
YMax "80000~45000"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope6"
Ports [3]
Position [455, 351, 485, 409]
Orientation "left"
BackgroundColor "green"
NamePlacement "alternate"
ShowName off
Floating off
Location [5, 40, 1029, 762]
Open off
NumInputPorts "3"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
TimeRange "1"
YMin "-25000~-20000~-200"
YMax "10000~5000~400"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Step
Name "Step"
Position [1130, 330, 1160, 360]
Time "0"
After "-20"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [4, 2]
Position [260, 191, 330, 254]
Orientation "left"
NamePlacement "alternate"
ShowName off
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Subsystem1"
Location [432, 74, 906, 462]
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 "ws"
Position [25, 173, 55, 187]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "irq"
Position [25, 113, 55, 127]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "ird"
Position [25, 288, 55, 302]
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "phi_s"
Position [25, 203, 55, 217]
Port "4"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Gain
Name "Gain"
Position [175, 55, 205, 85]
ShowName off
Gain "-1"
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 Product
Name "Product"
Ports [3, 1]
Position [240, 57, 270, 133]
ShowName off
Inputs "3"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [3, 1]
Position [240, 232, 270, 308]
ShowName off
Inputs "3"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [3, 1]
Position [240, 147, 270, 223]
ShowName off
Inputs "3"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [0, 2]
Position [70, 25, 110, 85]
ShowName off
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Subsystem"
Location [577, 264, 942, 431]
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 Fcn
Name "Fcn"
Position [220, 35, 280, 65]
ShowName off
Expr "u[1]/u[2]"
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -