📄 instructoretc.mdl
字号:
gain "1"
offset "0"
exp "1"
use_mototune_group off
mototune_group "motohawk_vardec_path(gcb)"
}
Block {
BlockType Reference
Name "motohawk_probe2"
Ports [1]
Position [1025, 72, 1175, 98]
ShowName off
SourceBlock "MotoHawk_lib/Calibration & Probing Bloc"
"ks/motohawk_probe"
SourceType "MotoHawk Probe"
nam "'ETCAgeCount'"
show_more on
name_source "Use Parameter"
read_level "1"
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_precision off
precision "''"
gain "1"
offset "0"
exp "1"
use_mototune_group off
mototune_group "motohawk_vardec_path(gcb)"
}
Block {
BlockType Outport
Name "Sensors"
Position [1505, 368, 1535, 382]
BackgroundColor "lightBlue"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
Name "ETCDutyCycle"
Labels [0, 0]
SrcBlock "Read CAN Message"
SrcPort 2
DstBlock "Signal Specification"
DstPort 1
}
Line {
Name "ETCDutyCycle"
Labels [0, 0]
SrcBlock "Signal Specification"
SrcPort 1
Points [75, 0]
Branch {
Points [0, -35]
DstBlock "motohawk_probe"
DstPort 1
}
Branch {
DstBlock "Bus\nCreator"
DstPort 1
}
}
Line {
Name "ETCEnable"
Labels [0, 0]
SrcBlock "Signal Specification1"
SrcPort 1
Points [75, 0]
Branch {
Points [0, -35]
DstBlock "motohawk_probe1"
DstPort 1
}
Branch {
DstBlock "Bus\nCreator"
DstPort 2
}
}
Line {
Name "ETCEnable"
Labels [0, 0]
SrcBlock "Read CAN Message"
SrcPort 3
DstBlock "Signal Specification1"
DstPort 1
}
Line {
Name "AgeCount"
Labels [0, 0]
SrcBlock "Read CAN Message"
SrcPort 1
Points [65, 0]
Branch {
Points [0, -55]
DstBlock "motohawk_probe2"
DstPort 1
}
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
}
Line {
SrcBlock "motohawk_calibration"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "motohawk_fault_def"
DstPort 1
}
Line {
SrcBlock "Bus\nCreator"
SrcPort 1
DstBlock "Sensors"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Sensors"
Ports []
Position [260, 315, 541, 388]
BackgroundColor "[0.819608, 0.870588, 0.670588]"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Sensors"
Location [137, 153, 1149, 674]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Reference
Name "Send CAN Messages"
Ports [2]
Position [685, 28, 1495, 497]
ShowName off
SourceBlock "MotoHawk_lib/CAN Blocks/Send CAN Messag"
"es"
SourceType "MotoHawk Send CAN Messages"
bus "1"
msgl "ETC_instructor_to_student_500"
pace "5"
labelwires on
}
Block {
BlockType Reference
Name "motohawk_ain"
Ports [0, 1]
Position [25, 103, 275, 187]
ShowName off
UserDataPersistent on
SourceBlock "MotoHawk_lib/Analog I//O Blocks/motohaw"
"k_ain"
SourceType "MotoHawk Analog Input"
text_resource "AN5M"
code_resource "RES_NONE"
val_resource "-1"
target "ECU555_80"
resource_enum_str "(None)=-1,ECUP=53,DRVP=54,XDRP=55,AN1M="
"56,AN2M=57,AN3M=58,AN4M=59,AN5M=60,AN6M=61,AN7M=62,AN8M=63,AN9M=64,AN10M=65,A"
"N11M=66,AN12M=67,AN13M=68,AN14M=69,AN15M=70,AN16M=71,AN17M=72,AN18M=73,AN19M="
"74,O2A=90,O2B=91,XDRP_B=92"
altref "5V Reference"
use_stat off
use_vardec off
nam "'AIN'"
read_level "1"
write_level "1"
group "'System | I/O Pins | Inputs Config'"
Port {
PortNumber 1
Name "SliderPosition"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Reference
Name "motohawk_ain1"
Ports [0, 1]
Position [25, 338, 275, 422]
ShowName off
UserDataPersistent on
SourceBlock "MotoHawk_lib/Analog I//O Blocks/motohaw"
"k_ain"
SourceType "MotoHawk Analog Input"
text_resource "AN4M"
code_resource "RES_NONE"
val_resource "-1"
target "ECU555_80"
resource_enum_str "(None)=-1,ECUP=53,DRVP=54,XDRP=55,AN1M="
"56,AN2M=57,AN3M=58,AN4M=59,AN5M=60,AN6M=61,AN7M=62,AN8M=63,AN9M=64,AN10M=65,A"
"N11M=66,AN12M=67,AN13M=68,AN14M=69,AN15M=70,AN16M=71,AN17M=72,AN18M=73,AN19M="
"74,O2A=90,O2B=91,XDRP_B=92"
altref "5V Reference"
use_stat off
use_vardec off
nam "'AIN'"
read_level "1"
write_level "1"
group "'System | I/O Pins | Inputs Config'"
Port {
PortNumber 1
Name "ThrottlePosition"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Reference
Name "motohawk_probe"
Ports [1]
Position [480, 97, 630, 123]
ShowName off
SourceBlock "MotoHawk_lib/Calibration & Probing Bloc"
"ks/motohawk_probe"
SourceType "MotoHawk Probe"
nam "'SliderPosition'"
show_more on
name_source "Use Input Wire Name"
read_level "1"
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_precision off
precision "''"
gain "1"
offset "0"
exp "1"
use_mototune_group off
mototune_group "motohawk_vardec_path(gcb)"
}
Block {
BlockType Reference
Name "motohawk_probe1"
Ports [1]
Position [480, 327, 630, 353]
ShowName off
SourceBlock "MotoHawk_lib/Calibration & Probing Bloc"
"ks/motohawk_probe"
SourceType "MotoHawk Probe"
nam "'SliderPosition'"
show_more on
name_source "Use Input Wire Name"
read_level "1"
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_precision off
precision "''"
gain "1"
offset "0"
exp "1"
use_mototune_group off
mototune_group "motohawk_vardec_path(gcb)"
}
Line {
Name "SliderPosition"
Labels [0, 0]
SrcBlock "motohawk_ain"
SrcPort 1
Points [0, 0; 165, 0]
Branch {
Labels [0, 0]
DstBlock "Send CAN Messages"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "motohawk_probe"
DstPort 1
}
}
Line {
Name "ThrottlePosition"
Labels [0, 0]
SrcBlock "motohawk_ain1"
SrcPort 1
Points [0, 0; 165, 0]
Branch {
Labels [0, 0]
DstBlock "Send CAN Messages"
DstPort 2
}
Branch {
Points [0, -40]
DstBlock "motohawk_probe1"
DstPort 1
}
}
}
}
Block {
BlockType Reference
Name "motohawk_TitleBlock"
Ports []
Position [18, 14, 883, 174]
ShowName off
FontName "Arial"
FontSize 12
SourceBlock "motohawk_annotations_lib/motohawk_TitleBloc"
"k"
SourceType "MotoHawk Title Block"
BlockType_ "'Mototron_Title_Block'"
ttl "[strrep(get_param(bdroot, 'Description') , "
"'_', '\\_') '\\newline\\rm' get_param(gcs, 'Name')]"
copyright "'THE INFORMATION CONTAINED IN THIS\\newline"
"DRAWING IS THE SOLE PROPERTY OF\\newlineMOTOTRON. ANY REPRODUCTION IN\\newli"
"ne PART OR AS A WHOLE WITHOUT THE\\newlineWRITTEN PERMISSION OF MOTOTRON\\new"
"line IS PROHIBITED.\\fontsize{16}\\rm\\copyright\\rm\\fontsize{10} 2005'"
address "'\\fontsize{22}\\it\\fontname{Arial Black}M"
"otoTron Corporation \\fontname{Arial}\\fontsize{10}\\newline505 Marion Road, "
"Oshkosh, WI, 54901\\newlinewww.mototron.com (734) 822-7700'"
image_file "'mh.jpg'"
pretty_print on
edit_text "[strrep(get_param(bdroot, 'Description') , "
"'_', '\\_') '\\newline\\rm' get_param(gcs, 'Name')]"
edit_as "5"
}
Block {
BlockType Reference
Name "motohawk_code_coverage"
Ports []
Position [485, 202, 661, 232]
ShowName off
SourceBlock "MotoHawk_lib/Extra Development Blocks/motoh"
"awk_code_coverage"
SourceType "MotoHawk Code Coverage Test Manager"
}
Line {
SrcBlock "CAN Receive"
SrcPort 1
DstBlock "Actuators"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Main Power Relay"
Ports []
Position [590, 335, 768, 401]
ShowName off
SourceBlock "MotoHawk_lib/Extra Development Blocks/Main Powe"
"r Relay"
SourceType "MotoHawk Main Power Relay Control"
ShowPortLabels on
on_delay_count "2"
off_delay_count "5"
ecup_threshold "100"
group "'System | Main Power Relay'"
}
Block {
BlockType Reference
Name "motohawk_TitleBlock"
Ports []
Position [28, 14, 893, 174]
ShowName off
FontName "Arial"
FontSize 12
SourceBlock "motohawk_annotations_lib/motohawk_TitleBlock"
SourceType "MotoHawk Title Block"
BlockType_ "'Mototron_Title_Block'"
ttl "[ strrep(get_param(bdroot, 'Description') , '_"
"', '\\_') '\\newline\\rm' 'Top-level root of model: ' strrep(bdroot, '_'"
", '\\_') '.mdl' ]"
copyright "'THE INFORMATION CONTAINED IN THIS\\newlineDRAW"
"ING IS THE SOLE PROPERTY OF\\newlineMOTOTRON. ANY REPRODUCTION IN\\newline P"
"ART OR AS A WHOLE WITHOUT THE\\newlineWRITTEN PERMISSION OF MOTOTRON\\newline"
" IS PROHIBITED.\\fontsize{16}\\rm\\copyright\\rm\\fontsize{10} 2005'"
address "'\\fontsize{22}\\it\\fontname{Arial Black}MotoT"
"ron Corporation \\fontname{Arial}\\fontsize{10}\\newline505 Marion Road, Oshk"
"osh, WI, 54901\\newlinewww.mototron.com (734) 822-7700'"
image_file "'mh.jpg'"
pretty_print on
edit_text "[
\n
\nstrrep(get_param(bdroot, 'Description') "
", '_', '\\_') '\\newline\\rm'
\n
\n'Top-level root of model: ' strrep(bdr"
"oot, '_', '\\_') '.mdl'
\n
\n]"
edit_as "5"
}
Block {
BlockType Reference
Name "motohawk_code_coverage_mgr"
Ports []
Position [85, 727, 412, 780]
ShowName off
SourceBlock "MotoHawk_lib/Extra Development Blocks/motohawk_"
"code_coverage_mgr"
SourceType "MotoHawk Code Coverage Test Manager"
codegen "Always Generate Code Coverage Code"
group "'System
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -