📄 multi_target.mdl
字号:
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Constant
Name "one"
Position [65, 112, 100, 138]
ShowAdditionalParam on
OutDataTypeMode "Specify via dialog"
OutScaling "2^-10"
}
Block {
BlockType Outport
Name "Turbine_SpeedCTR"
Position [630, 78, 660, 92]
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Divide4"
DstPort 1
}
Line {
Name "Turbine_SpeedCTR"
Labels [0, 1]
SrcBlock "Relational\nOperator2"
SrcPort 1
DstBlock "Turbine_SpeedCTR"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Relational\nOperator2"
DstPort 1
}
Line {
SrcBlock "Divide4"
SrcPort 1
DstBlock "Relational\nOperator2"
DstPort 2
}
Line {
SrcBlock "Add3"
SrcPort 1
Points [10, 0; 0, -40]
DstBlock "Divide4"
DstPort 2
}
Line {
SrcBlock "Divide3"
SrcPort 1
Points [15, 0]
DstBlock "Add3"
DstPort 2
}
Line {
SrcBlock "R_2 "
SrcPort 1
DstBlock "Divide3"
DstPort 2
}
Line {
SrcBlock "Divide2"
SrcPort 1
DstBlock "Add3"
DstPort 1
}
Line {
SrcBlock "R_1 "
SrcPort 1
DstBlock "Divide2"
DstPort 2
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Divide2"
DstPort 1
}
Line {
SrcBlock " INERTIA_THR1"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 30]
DstBlock "Divide3"
DstPort 1
}
Branch {
DstBlock "Add"
DstPort 2
}
}
Line {
SrcBlock "one"
SrcPort 1
DstBlock "Add"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "CalcTurbineSpeedCtoF"
Ports [2, 1, 0, 1]
Position [205, 99, 345, 166]
TreatAsAtomicUnit on
RTWSystemCode "Inline"
System {
Name "CalcTurbineSpeedCtoF"
Location [128, 234, 723, 490]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [170, 28, 200, 42]
}
Block {
BlockType Inport
Name "In2"
Position [25, 43, 55, 57]
Port "2"
}
Block {
BlockType TriggerPort
Name "Trigger"
Ports []
Position [445, 15, 465, 35]
TriggerType "function-call"
ZeroCross off
}
Block {
BlockType Constant
Name " "
Position [75, 90, 115, 120]
Value "COMPLETE_THR"
ShowAdditionalParam on
OutDataTypeMode "Specify via dialog"
OutScaling "2^-10"
}
Block {
BlockType Sum
Name "Add2"
Ports [2, 1]
Position [155, 48, 180, 92]
Inputs "+-"
ShowAdditionalParam on
InputSameDT off
OutDataTypeMode "Inherit via back propagation"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [90, 42, 125, 73]
Inputs "*/"
ShowAdditionalParam on
InputSameDT off
OutDataTypeMode "Specify via dialog"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "R_1"
Position [40, 54, 75, 76]
Value "1.0"
ShowAdditionalParam on
OutDataTypeMode "Specify via dialog"
OutScaling "2^-10"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [235, 25, 275, 65]
Operator "<="
ShowAdditionalParam on
LogicOutDataTypeMode "Specify via dialog"
LogicDataType "uint(16)"
ZeroCross off
Port {
PortNumber 1
Name "Turbine_Speed_CtoF"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Outport
Name "Out1"
Position [325, 38, 355, 52]
}
Line {
Name "Turbine_Speed_CtoF"
Labels [0, 0]
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Divide"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 1
}
Line {
SrcBlock "Add2"
SrcPort 1
Points [25, 0; 0, -15]
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock " "
SrcPort 1
Points [0, -25]
DstBlock "Add2"
DstPort 2
}
Line {
SrcBlock "Divide"
SrcPort 1
DstBlock "Add2"
DstPort 1
}
Line {
SrcBlock "R_1"
SrcPort 1
DstBlock "Divide"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "CalcTurbineSpeedItoS"
Ports [2, 1, 0, 1]
Position [275, 298, 420, 367]
TreatAsAtomicUnit on
RTWSystemCode "Inline"
System {
Name "CalcTurbineSpeedItoS"
Location [87, 485, 625, 763]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [145, 28, 175, 42]
}
Block {
BlockType Inport
Name "In2"
Position [25, 43, 55, 57]
Port "2"
}
Block {
BlockType TriggerPort
Name "Trigger"
Ports []
Position [390, 15, 410, 35]
TriggerType "function-call"
ZeroCross off
}
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [145, 37, 180, 68]
ShowAdditionalParam on
InputSameDT off
OutDataTypeMode "Inherit via back propagation"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "COMPLETE_THR "
Position [85, 106, 115, 134]
Value "COMPLETE_THR"
ShowAdditionalParam on
OutDataTypeMode "Specify via dialog"
OutScaling "2^-10"
}
Block {
BlockType Product
Name "Divide1"
Ports [2, 1]
Position [80, 42, 115, 73]
Inputs "*/"
ShowAdditionalParam on
InputSameDT off
OutDataTypeMode "Specify via dialog"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "R_2"
Position [25, 77, 60, 103]
Value "1.0"
ShowAdditionalParam on
OutDataTypeMode "Specify via dialog"
OutScaling "2^-10"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [200, 25, 240, 65]
Operator "<"
ShowAdditionalParam on
LogicOutDataTypeMode "Specify via dialog"
LogicDataType "uint(16)"
ZeroCross off
Port {
PortNumber 1
Name "Turbine_Speed_ItoS"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Outport
Name "Out1"
Position [265, 38, 295, 52]
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Divide1"
DstPort 1
}
Line {
Name "Turbine_Speed_ItoS"
Labels [0, 0]
SrcBlock "Relational\nOperator1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 1
}
Line {
SrcBlock "Add1"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 2
}
Line {
SrcBlock "Divide1"
SrcPort 1
Points [5, 0; 0, -15]
DstBlock "Add1"
DstPort 1
}
Line {
SrcBlock "R_2"
SrcPort 1
Points [-10, 0; 0, -25]
DstBlock "Divide1"
DstPort 2
}
Line {
SrcBlock "COMPLETE_THR "
SrcPort 1
Points [10, 0]
DstBlock "Add1"
DstPort 2
}
Annotation {
Name "COMPLETE_THR"
Position [70, 33]
}
}
}
Block {
BlockType From
Name "From"
Position [1245, 485, 1285, 505]
BackgroundColor "cyan"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "r_i"
Port {
PortNumber 1
PropagatedSignals "reset_inertia"
ShowPropagatedSignals "on"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType From
Name "From1"
Position [1235, 445, 1275, 465]
ForegroundColor "green"
ShowName off
CloseFcn "tagdialog Close"
GotoTag "w_t"
Port {
PortNumber 1
PropagatedSignals "TurbSpeed"
ShowPropagatedSignals "on"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -