📄 shaker_driver_sysid2.mdl
字号:
"(port, pin, sampletime, Von, Voff);"
MaskDisplay "fprintf('%s\\nPins: %s', portstr, pinstr)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Port H|0|Ts|0.5|0.5"
System {
Name "Direction2"
Location [262, 81, 747, 356]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 20, 50, 40]
FontSize 12
}
Block {
BlockType "S-Function"
Name "Digital Output SFcn"
Tag "MC9S12target"
Ports [1]
Position [255, 81, 380, 119]
List {
ListType RTWdata
portStr "PTH"
ddrStr "DDRH"
pinMask "1"
pinStr "0"
}
FontSize 12
FunctionName "digOut_sfcn_9S12"
Parameters "sampletime, port, pins, Von, Voff"
}
Block {
BlockType Mux
Name "Mux"
Ports [1, 1]
Position [165, 40, 170, 220]
ShowName off
Inputs "1"
DisplayOption "bar"
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, -30]
DstBlock "Digital Output SFcn"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [95, 0]
DstBlock "Mux"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Direction3"
Ports [1]
Position [585, 294, 680, 346]
BackgroundColor "lightBlue"
AncestorBlock "mc9S12tool/Digital output"
List {
ListType RTWdata
portStr "PORTA"
ddrStr "DDRA"
pinStr "6"
}
FontSize 12
ShowPortLabels off
TreatAsAtomicUnit off
MaskHelp "helpview('C:\\Program Files\\Metrowerks\\rt"
"mc9S12_CW_R13\\bin\\mc9S12.map', 'mc9S12_DOUT_In_blkref')"
MaskPromptString "Port (see hardware manuals for valid option"
"s)|Pin (see hardware manuals for valid options)|Sample time|On-threshold (Von"
")|Off-threshold (Voff)"
MaskStyleString "popup(Port A|Port B|Port H|Port J|Port M|Po"
"rt P|Port S|Port T),edit,edit,edit,edit"
MaskTunableValueString "off,off,off,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "port=@1;pin=&2;sampletime=@3;Von=@4;Voff=@5"
";"
MaskInitialization "[portstr, pinstr, pins] = mbc_digitaloutput"
"(port, pin, sampletime, Von, Voff);"
MaskDisplay "fprintf('%s\\nPins: %s', portstr, pinstr)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Port H|3|Ts|0.5|0.5"
System {
Name "Direction3"
Location [262, 81, 747, 356]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 20, 50, 40]
FontSize 12
}
Block {
BlockType "S-Function"
Name "Digital Output SFcn"
Tag "MC9S12target"
Ports [1]
Position [255, 81, 380, 119]
List {
ListType RTWdata
portStr "PTH"
ddrStr "DDRH"
pinMask "8"
pinStr "3"
}
FontSize 12
FunctionName "digOut_sfcn_9S12"
Parameters "sampletime, port, pins, Von, Voff"
}
Block {
BlockType Mux
Name "Mux"
Ports [1, 1]
Position [165, 40, 170, 220]
ShowName off
Inputs "1"
DisplayOption "bar"
}
Line {
SrcBlock "In1"
SrcPort 1
Points [95, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, -30]
DstBlock "Digital Output SFcn"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Pulses2"
Ports [1]
Position [585, 49, 680, 101]
BackgroundColor "[1.000000, 1.000000, 0.000000]"
AncestorBlock "mc9S12tool/Digital output"
List {
ListType RTWdata
portStr "PORTA"
ddrStr "DDRA"
pinStr "6"
}
FontSize 12
ShowPortLabels off
TreatAsAtomicUnit off
MaskHelp "helpview('C:\\Program Files\\Metrowerks\\rt"
"mc9S12_CW_R13\\bin\\mc9S12.map', 'mc9S12_DOUT_In_blkref')"
MaskPromptString "Port (see hardware manuals for valid option"
"s)|Pin (see hardware manuals for valid options)|Sample time|On-threshold (Von"
")|Off-threshold (Voff)"
MaskStyleString "popup(Port A|Port B|Port H|Port J|Port M|Po"
"rt P|Port S|Port T),edit,edit,edit,edit"
MaskTunableValueString "off,off,off,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "port=@1;pin=&2;sampletime=@3;Von=@4;Voff=@5"
";"
MaskInitialization "[portstr, pinstr, pins] = mbc_digitaloutput"
"(port, pin, sampletime, Von, Voff);"
MaskDisplay "fprintf('%s\\nPins: %s', portstr, pinstr)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Port H|1|Ts|0.5|0.5"
System {
Name "Pulses2"
Location [262, 81, 702, 272]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 20, 50, 40]
FontSize 12
}
Block {
BlockType "S-Function"
Name "Digital Output SFcn"
Tag "MC9S12target"
Ports [1]
Position [255, 81, 380, 119]
List {
ListType RTWdata
portStr "PTH"
ddrStr "DDRH"
pinMask "2"
pinStr "1"
}
FontSize 12
FunctionName "digOut_sfcn_9S12"
Parameters "sampletime, port, pins, Von, Voff"
}
Block {
BlockType Mux
Name "Mux"
Ports [1, 1]
Position [165, 40, 170, 220]
ShowName off
Inputs "1"
DisplayOption "bar"
}
Line {
SrcBlock "In1"
SrcPort 1
Points [95, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, -30]
DstBlock "Digital Output SFcn"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Pulses3"
Ports [1]
Position [585, 219, 680, 271]
BackgroundColor "[1.000000, 1.000000, 0.000000]"
AncestorBlock "mc9S12tool/Digital output"
List {
ListType RTWdata
portStr "PORTA"
ddrStr "DDRA"
pinStr "6"
}
FontSize 12
ShowPortLabels off
TreatAsAtomicUnit off
MaskHelp "helpview('C:\\Program Files\\Metrowerks\\rt"
"mc9S12_CW_R13\\bin\\mc9S12.map', 'mc9S12_DOUT_In_blkref')"
MaskPromptString "Port (see hardware manuals for valid option"
"s)|Pin (see hardware manuals for valid options)|Sample time|On-threshold (Von"
")|Off-threshold (Voff)"
MaskStyleString "popup(Port A|Port B|Port H|Port J|Port M|Po"
"rt P|Port S|Port T),edit,edit,edit,edit"
MaskTunableValueString "off,off,off,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "port=@1;pin=&2;sampletime=@3;Von=@4;Voff=@5"
";"
MaskInitialization "[portstr, pinstr, pins] = mbc_digitaloutput"
"(port, pin, sampletime, Von, Voff);"
MaskDisplay "fprintf('%s\\nPins: %s', portstr, pinstr)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Port H|2|Ts|0.5|0.5"
System {
Name "Pulses3"
Location [262, 81, 702, 272]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 20, 50, 40]
FontSize 12
}
Block {
BlockType "S-Function"
Name "Digital Output SFcn"
Tag "MC9S12target"
Ports [1]
Position [255, 81, 380, 119]
List {
ListType RTWdata
portStr "PTH"
ddrStr "DDRH"
pinMask "4"
pinStr "2"
}
FontSize 12
FunctionName "digOut_sfcn_9S12"
Parameters "sampletime, port, pins, Von, Voff"
}
Block {
BlockType Mux
Name "Mux"
Ports [1, 1]
Position [165, 40, 170, 220]
ShowName off
Inputs "1"
DisplayOption "bar"
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, -30]
DstBlock "Digital Output SFcn"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [95, 0]
DstBlock "Mux"
DstPort 1
}
}
}
Line {
SrcBlock "Constant3"
SrcPort 1
Points [105, 0]
Branch {
DstBlock "Pulses2"
DstPort 1
}
Branch {
Points [0, 80]
Branch {
DstBlock "Direction2"
DstPort 1
}
Branch {
Points [0, 90]
Branch {
DstBlock "Pulses3"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Direction3"
DstPort 1
}
}
}
}
}
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [525, 571, 560, 609]
ShowName off
SampleTime "Ts"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold2"
Position [525, 516, 560, 554]
ShowName off
SampleTime "Ts"
}
Block {
BlockType Scope
Name "accel1"
Ports [1]
Position [630, 519, 660, 551]
FontSize 12
Location [49, 484, 390, 684]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "4"
YMin "1.7"
YMax "3.4"
SaveToWorkspace on
SaveName "accel1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "accel2"
Ports [1]
Position [630, 574, 660, 606]
FontSize 12
Location [419, 487, 747, 695]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "4"
YMin "-1"
YMax "6"
SaveToWorkspace on
SaveName "accel2"
DataFormat "StructureWithTime"
}
Block {
BlockType SubSystem
Name "thrusters in exciation mode"
Ports [1, 0, 1]
Position [710, 251, 865, 359]
TreatAsAtomicUnit off
System {
Name "thrusters in exciation mode"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -