📄 sysid.mdl
字号:
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "ADC Input"
Ports [0, 1]
Position [460, 255, 555, 305]
AncestorBlock "mc9S12tool/ADC Input"
FontName "Arial"
FontSize 12
ShowPortLabels off
TreatAsAtomicUnit off
MaskHelp "helpview('C:\\Documents and Settings\\fwornle\\"
"My Documents\\frank\\_cProgs\\Motorola\\rtmc9S12_CW_R13\\bin\\mc9S12.map', 'm"
"c9S12_ADC_In_blkref')"
MaskPromptString "ADC bank|Channels ( 0 - 7 )|ADC resolution|Norm"
"alization|Sample time"
MaskStyleString "popup(0|1),edit,popup(10 bits|8 bits),popup(raw"
" values|max. output: 1|max. output: 5),edit"
MaskTunableValueString "off,off,off,off,off"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "bank=@1;channels=&2;use10bits=@3;normalize=@4;s"
"ampletime=@5;"
MaskInitialization "[channelsStr, firstChannel, numChannels] = mbc_"
"adcinput(bank, channels, use10bits, normalize, sampletime);"
MaskDisplay "disp(['ADC Input\\n' channelsStr])"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0|3|10 bits|max. output: 5|0.01"
System {
Name "ADC Input"
Location [584, 145, 1067, 361]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType "S-Function"
Name "Analog Input SFcn"
Ports [0, 1]
Position [25, 25, 145, 65]
FunctionName "adc_sfcn_9S12"
Parameters "bank-1, firstChannel, numChannels, use10bit"
"s-1, normalize, sampletime"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 1]
Position [240, 23, 245, 207]
BackgroundColor "black"
ShowName off
Outputs "1"
}
Block {
BlockType Outport
Name "Out1"
Position [410, 26, 430, 44]
}
Line {
SrcBlock "Analog Input SFcn"
SrcPort 1
Points [0, 70]
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [30, 0; 0, -80]
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Band-Limited\nWhite Noise"
Ports [0, 1]
Position [75, 135, 105, 165]
SourceBlock "simulink/Sources/Band-Limited\nWhite Noise"
SourceType "Continuous White Noise."
Cov "[0.05]"
Ts "0.1"
seed "[23341]"
VectorParams1D on
}
Block {
BlockType Constant
Name "Bias"
Position [80, 82, 105, 108]
Value "2.5"
}
Block {
BlockType Constant
Name "Bias1"
Position [75, 197, 100, 223]
}
Block {
BlockType Reference
Name "D to A converter"
Ports [1]
Position [455, 170, 550, 220]
FontSize 12
SourceBlock "mc9S12tool/D to A converter"
SourceType ""
sampletime "0.01"
dac_channel "0"
Vsat "5"
}
Block {
BlockType Gain
Name "Gain"
Position [310, 180, 340, 210]
Gain "0.3"
}
Block {
BlockType Constant
Name "Input"
Position [140, 29, 165, 51]
Value "3"
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch"
Ports [4, 1]
Position [225, 172, 255, 218]
Inputs "3"
ShowAdditionalParam on
InputSameDT off
}
Block {
BlockType Reference
Name "Repeating\nSequence"
Ports [0, 1]
Position [75, 305, 105, 335]
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
rep_seq_t "xx.time"
rep_seq_y "xx.signals.values"
}
Block {
BlockType Saturate
Name "Saturation"
Position [380, 178, 410, 212]
UpperLimit "5"
LowerLimit "0"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [635, 264, 665, 296]
ExtModeUploadOption "log"
Location [667, 491, 991, 730]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "8"
YMin "-0.5"
YMax "5.5"
SaveToWorkspace on
SaveName "y"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [310, 104, 340, 136]
ExtModeUploadOption "log"
Location [333, 491, 657, 730]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "8"
YMin "-0.5"
YMax "5.5"
SaveToWorkspace on
SaveName "x"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [150, 140, 170, 160]
ShowName off
IconShape "round"
Inputs "++|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [170, 250, 190, 270]
ShowName off
IconShape "round"
Inputs "++|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType DiscretePulseGenerator
Name "set point"
Position [65, 243, 110, 277]
PulseType "Time based"
Amplitude "3"
PulseWidth "50"
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "D to A converter"
DstPort 1
}
Line {
SrcBlock "ADC Input"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Bias"
SrcPort 1
Points [50, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Band-Limited\nWhite Noise"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Bias1"
SrcPort 1
Points [75, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "set point"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 40]
DstBlock "Multiport\nSwitch"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [5, 0; 0, -60]
DstBlock "Multiport\nSwitch"
DstPort 3
}
Line {
SrcBlock "Input"
SrcPort 1
Points [30, 0; 0, 140]
DstBlock "Multiport\nSwitch"
DstPort 1
}
Line {
SrcBlock "Repeating\nSequence"
SrcPort 1
Points [100, 0]
DstBlock "Multiport\nSwitch"
DstPort 4
}
Line {
SrcBlock "Multiport\nSwitch"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, -75]
DstBlock "Scope1"
DstPort 1
}
}
Annotation {
Name "Test program - System Identification\nload 'sys"
"ID_xx_data.mat' (variable 'xx'\nis required by block 'Repeating Sequence')"
Position [372, 27]
HorizontalAlignment "left"
VerticalAlignment "top"
FontName "Times New Roman"
FontSize 14
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -