📄 multi_target.mdl
字号:
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Inport
Name "UIAT"
Position [30, 278, 60, 292]
FontName "Arial"
FontSize 14
FontWeight "bold"
Port "3"
Port {
PortNumber 1
PropagatedSignals "UIAT"
ShowPropagatedSignals "on"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Inport
Name "RefPeriod"
Position [30, 338, 60, 352]
FontName "Arial"
FontSize 14
FontWeight "bold"
Port "4"
Port {
PortNumber 1
PropagatedSignals "RefPeriod"
ShowPropagatedSignals "on"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Constant
Name "Constant"
Position [90, 30, 225, 70]
FontName "Arial"
FontSize 14
FontWeight "bold"
Value "nPmVd_over_2R"
ShowAdditionalParam on
OutDataTypeMode "Inherit via back propagation"
ConRadixGroup "Best Precision: Vector-wise"
OutScaling "2^-18"
}
Block {
BlockType SubSystem
Name "CtoK"
Ports [1, 1]
Position [220, 265, 385, 305]
FontName "Arial"
FontSize 14
FontWeight "bold"
TreatAsAtomicUnit off
System {
Name "CtoK"
Location [387, 74, 959, 728]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "DegCelsius"
Position [25, 78, 55, 92]
}
Block {
BlockType Gain
Name "Gain"
Position [155, 70, 235, 100]
Gain "1/273"
ShowAdditionalParam on
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via back propagation"
}
Block {
BlockType Outport
Name "DegKelvin"
Position [350, 78, 380, 92]
}
Line {
SrcBlock "DegCelsius"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "DegKelvin"
DstPort 1
}
}
}
Block {
BlockType Product
Name "Divide"
Ports [5, 1]
Position [565, 152, 605, 238]
FontName "Arial"
FontSize 14
FontWeight "bold"
Inputs "***//"
ShowAdditionalParam on
InputSameDT off
OutDataTypeMode "Inherit via back propagation"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "AirPerCylinder"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "ExportedGlobal"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Lookup2D
Name "Look-Up\nTable (2-D)"
Position [270, 175, 310, 215]
FontName "Arial"
FontSize 14
FontWeight "bold"
RowIndex "MANIFOLD_PRESSURE_AXIS"
ColumnIndex "RPM_AXIS"
OutputValues "AIR_TABLE"
ShowAdditionalParam on
LookUpMeth "Use Input Nearest"
InputSameDT off
OutDataTypeMode "Inherit via back propagation"
OutDataType "sfix(32)"
OutScaling "2^-10"
RndMeth "Nearest"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "SpeedDensity"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "ExportedGlobal"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Outport
Name "AirPerCylinder"
Position [860, 188, 890, 202]
FontName "Arial"
FontSize 14
FontWeight "bold"
}
Line {
Name "AirPerCylinder"
FontName "Arial"
FontSize 14
FontWeight "bold"
Labels [0, 0; -1, 1]
SrcBlock "Divide"
SrcPort 1
DstBlock "AirPerCylinder"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "RefPeriod"
SrcPort 1
Points [450, 0; 0, -120]
DstBlock "Divide"
DstPort 5
}
Line {
Labels [0, 0]
SrcBlock "Constant"
SrcPort 1
Points [265, 0; 0, 115]
DstBlock "Divide"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "CtoK"
SrcPort 1
Points [105, 0; 0, -75]
DstBlock "Divide"
DstPort 4
}
Line {
Labels [0, 0]
SrcBlock "UIAT"
SrcPort 1
DstBlock "CtoK"
DstPort 1
}
Line {
Name "SpeedDensity"
FontName "Arial"
FontSize 14
FontWeight "bold"
Labels [0, 0]
SrcBlock "Look-Up\nTable (2-D)"
SrcPort 1
DstBlock "Divide"
DstPort 3
}
Line {
Labels [1, 1]
SrcBlock "UMAP"
SrcPort 1
Points [125, 0]
Branch {
Labels [2, 0]
Points [0, -45; 200, 0; 0, 60]
DstBlock "Divide"
DstPort 2
}
Branch {
Points [60, 0]
DstBlock "Look-Up\nTable (2-D)"
DstPort 1
}
}
Line {
Labels [1, 1]
SrcBlock "EngSpeed"
SrcPort 1
Points [185, 0]
DstBlock "Look-Up\nTable (2-D)"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Spark_Command"
Ports [2, 1]
Position [270, 360, 490, 455]
ForegroundColor "red"
BackgroundColor "green"
FontName "Arial"
FontSize 16
FontWeight "bold"
TreatAsAtomicUnit on
RTWSystemCode "Function"
RTWFcnNameOpts "Use subsystem name"
RTWFileNameOpts "Use subsystem name"
Port {
PortNumber 1
PropagatedSignals "SpkCorrection"
ShowPropagatedSignals "on"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "Spark_Command"
Location [276, 74, 954, 340]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "101"
Block {
BlockType Inport
Name "UMAP"
Position [60, 63, 90, 77]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port {
PortNumber 1
PropagatedSignals "UMAP"
ShowPropagatedSignals "on"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Inport
Name "EngSpeed"
Position [60, 108, 90, 122]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "2"
Port {
PortNumber 1
PropagatedSignals "EngSpeed"
ShowPropagatedSignals "on"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Lookup2D
Name "Look-Up\nTable (2-D)"
Position [280, 49, 365, 136]
FontName "Arial"
FontSize 16
FontWeight "bold"
RowIndex "MANIFOLD_PRESSURE_AXIS"
ColumnIndex "RPM_AXIS"
OutputValues "SPARK_TABLE"
ShowAdditionalParam on
LookUpMeth "Interpolation-Use End Values"
InputSameDT off
OutDataTypeMode "Inherit via back propagation"
OutDataType "sfix(2)"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "SpkCorrection"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "ExportedGlobal"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Outport
Name "SpkCorrection"
Position [595, 88, 625, 102]
FontName "Arial"
FontSize 16
FontWeight "bold"
}
Line {
Name "SpkCorrection"
FontName "Arial"
FontSize 16
FontWeight "bold"
Labels [1, 1]
SrcBlock "Look-Up\nTable (2-D)"
SrcPort 1
DstBlock "SpkCorrection"
DstPort 1
}
Line {
Labels [1, 1]
SrcBlock "UMAP"
SrcPort 1
DstBlock "Look-Up\nTable (2-D)"
DstPort 1
}
Line {
Labels [1, 1]
SrcBlock "EngSpeed"
SrcPort 1
DstBlock "Look-Up\nTable (2-D)"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "TransMissionController"
Ports [5, 2]
Position [1020, 130, 1185, 460]
ForegroundColor "red"
BackgroundColor "yellow"
FontName "Arial"
FontSize 16
FontWeight "bold"
TreatAsAtomicUnit on
RTWSystemCode "Function"
RTWFcnNameOpts "Use subsystem name"
RTWFileNameOpts "Use subsystem name"
Port {
PortNumber 1
PropagatedSignals "torque_clutch_2"
ShowPropagatedSignals "on"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
Port {
PortNumber 2
PropagatedSignals "torque_clutch_1"
ShowPropagatedSignals "on"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -