📄 instructoretc.mdl
字号:
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType If
NumInputs "1"
IfExpression "u1 > 0"
ShowElse on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Logic
Operator "AND"
Inputs "2"
AllPortsSameDT on
OutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
SampleTime "-1"
}
Block {
BlockType Merge
Inputs "2"
InitialOutput "[]"
AllowUnequalInputPortWidths off
InputPortOffsets "[]"
}
Block {
BlockType MultiPortSwitch
Inputs "4"
zeroidx off
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType SignalSpecification
Dimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Terminator
}
Block {
BlockType TriggerPort
TriggerType "rising"
StatesWhenEnabling "inherit"
ShowOutputPort off
OutputDataType "auto"
SampleTimeType "triggered"
SampleTime "1"
ZeroCross on
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "InstructorETC"
Location [227, 118, 1153, 778]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "CAN Definition"
Ports []
Position [115, 825, 383, 1002]
ShowName off
Priority "-100"
SourceBlock "MotoHawk_lib/CAN Blocks/CAN Definition"
SourceType "MotoHawk CAN Bus Definition"
bus "CAN_1"
btime "250 kbaud"
pre "1"
prop "0"
pseg1 "0"
pseg2 "0"
resyn "0"
tx_queue_size "16"
use_protocol on
city_id "hex2dec('C')"
access_level "4"
mototune_group "'System | System Config | Communication Config'"
}
Block {
BlockType SubSystem
Name "Foreground"
Ports [0, 0, 0, 1]
Position [630, 589, 730, 631]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Function"
RTWFcnNameOpts "Use subsystem name"
RTWFileNameOpts "Use function name"
MaskInitialization "SampleTime = 0.005;\nlbl = sprintf('%d ms', Sam"
"pleTime * 1000);\n"
MaskDisplay "disp(lbl);\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Foreground"
Location [62, 82, 980, 742]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType TriggerPort
Name "f"
Ports []
Position [455, 205, 475, 225]
TriggerType "function-call"
StatesWhenEnabling "held"
}
Block {
BlockType SubSystem
Name "Actuators"
Ports [1]
Position [460, 529, 730, 601]
BackgroundColor "lightBlue"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Actuators"
Location [20, 97, 1011, 756]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Actuators"
Position [125, 93, 155, 107]
BackgroundColor "orange"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType BusSelector
Name "Bus\nSelector"
Ports [1, 1]
Position [255, 88, 260, 112]
ShowName off
DialogController "Simulink.DDGSource_Bus"
OutputSignals "ETCEnable"
Port {
PortNumber 1
Name "<ETCEnable>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType BusSelector
Name "Bus\nSelector1"
Ports [1, 1]
Position [255, 138, 260, 162]
ShowName off
DialogController "Simulink.DDGSource_Bus"
OutputSignals "ETCDutyCycle"
Port {
PortNumber 1
Name "<ETCDutyCycle>"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Constant
Name "Constant"
Position [500, 211, 575, 229]
ShowName off
Value "0"
OutDataTypeMode "Inherit via back propagation"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion"
Position [470, 448, 545, 482]
ShowName off
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion1"
Position [470, 508, 545, 542]
ShowName off
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain"
Position [295, 435, 420, 495]
BackgroundColor "yellow"
ShowName off
Gain "4096/100"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [315, 510, 380, 540]
BackgroundColor "yellow"
ShowName off
Gain "100"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [545, 30, 575, 125]
ShowName off
Operator "OR"
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [430, 84, 460, 116]
ShowName off
Operator "NOT"
OutDataTypeMode "Boolean"
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch"
Ports [3, 1]
Position [635, 47, 665, 253]
ShowName off
Inputs "2"
zeroidx on
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "motohawk_calibration"
Ports [0, 1]
Position [55, 505, 205, 545]
ShowName off
SourceBlock "MotoHawk_lib/Calibration & Probing Bloc"
"ks/motohawk_calibration"
SourceType "MotoHawk Calibration"
nam "'ETCFrequency'"
val "4000"
storage "Calibration"
show_more off
name_source "Use Parameter"
data_type "Inherit from 'Default Value'"
read_level "1"
write_level "1"
ovr_cals on
view_as "Number"
enum_struct "{'Disabled', 'Enabled'}"
vector_style "Wide Row"
use_help_units off
help "''"
units "''"
use_header_enum off
row_header_enum "{}"
col_header_enum "{}"
use_min_max off
min_val "-inf"
max_val "inf"
use_precision off
precision "''"
gain "1"
offset "0"
exp "1"
use_mototune_group off
mototune_group "motohawk_vardec_path(gcb)"
}
Block {
BlockType Reference
Name "motohawk_fault_action"
Ports [0, 1]
Position [290, 34, 460, 76]
ShowName off
SourceBlock "MotoHawk_lib/Fault Management Blocks/mo"
"tohawk_fault_action"
SourceType "MotoHawk Fault Action"
nam "'ZeroETC'"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -