📄 sga__suspension_flc_quarter_semiactive.mdl
字号:
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Inport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
Block {
BlockType Integrator
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
IgnoreLimit off
ZeroCross on
}
Block {
BlockType Math
Operator "exp"
OutputSignalType "auto"
SampleTime "-1"
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
UseBusObject off
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 Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType RandomNumber
Mean "0"
Variance "1"
Seed "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType Scope
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
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"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "arial"
FontSize 36
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "arial"
FontSize 36
FontWeight "normal"
FontAngle "normal"
}
System {
Name "SGA__suspension_flc_quarter_semiactive"
Location [2, 78, 998, 728]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name " white noise"
Ports [0, 1]
Position [220, 318, 380, 392]
BackgroundColor "magenta"
FontSize 12
SourceBlock "simulink/Sources/Band-Limited\nWhite Noise"
SourceType "Band-Limited White Noise."
ShowPortLabels on
Cov "[256*10^-6]"
Ts "0.01"
seed "[23341]"
VectorParams1D on
}
Block {
BlockType SubSystem
Name "1/4 vehicle semi-active suspension system"
Ports [2, 3]
Position [600, 267, 955, 623]
ForegroundColor "blue"
BackgroundColor "blue"
DropShadow on
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDescription "1/4 semi-active vehicle suspension system\nleo."
"chen.yi@gmail.com"
MaskPromptString "Sprung mass-m1(kg)|Unsprung mass-m2(kg|Stiffnes"
"s of tyre-k1(N/m)|Stiffness of suspension-k2(N/m)|Coefficient of damper-c0(N/"
"m/s)|Friction of suspension-fr(N)|Acceleration of gravity-g(m/s^2)"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on"
MaskCallbackString "||||||"
MaskEnableString "on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,"
MaskVariables "m1=@1;m2=@2;k1=@3;k2=@4;c0=@5;fr=@6;g=@7;"
MaskDisplay "image(imread('SGA__suspension_quarter_semiactiv"
"e.jpg'));"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "36|240|160000|16000|1400|300|9.8"
MaskTabNameString ",,,,,,"
System {
Name "1/4 vehicle semi-active suspension system"
Location [2, 74, 995, 728]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "q"
Position [120, 953, 150, 977]
FontSize 12
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "fd"
Position [1460, 1007, 1490, 1033]
Orientation "left"
FontSize 12
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Gain
Name "-1"
Position [760, 650, 790, 680]
FontSize 12
Gain "-1"
}
Block {
BlockType Constant
Name "Constant2=-1"
Position [1315, 1390, 1345, 1420]
FontSize 12
Value "-1"
}
Block {
BlockType Constant
Name "Constant=-1"
Position [1155, 760, 1185, 790]
FontSize 12
Value "-1"
}
Block {
BlockType SubSystem
Name "Data Inputs"
Ports [0, 1]
Position [75, 1163, 205, 1237]
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Data Inputs"
Location [2, 74, 1014, 744]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Constant
Name "Fr"
Position [150, 415, 180, 445]
Value "fr"
}
Block {
BlockType Mux
Name "Mux"
Ports [7, 1]
Position [295, 19, 400, 541]
ShowName off
Inputs "7"
DisplayOption "bar"
}
Block {
BlockType Constant
Name "c0"
Position [150, 340, 180, 370]
Value "c0"
}
Block {
BlockType Constant
Name "g"
Position [145, 490, 175, 520]
Value "g"
}
Block {
BlockType Constant
Name "k1"
Position [150, 190, 180, 220]
Value "k1"
}
Block {
BlockType Constant
Name "k2"
Position [150, 265, 180, 295]
Value "k2"
}
Block {
BlockType Constant
Name "m1"
Position [150, 40, 180, 70]
Value "m1"
}
Block {
BlockType Constant
Name "m2"
Position [150, 115, 180, 145]
Value "m2"
}
Block {
BlockType Outport
Name "Simulaiton Parameters\n"
Position [650, 273, 680, 287]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "m1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "m2"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "k1"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "k2"
SrcPort 1
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "c0"
SrcPort 1
DstBlock "Mux"
DstPort 5
}
Line {
SrcBlock "Fr"
SrcPort 1
DstBlock "Mux"
DstPort 6
}
Line {
SrcBlock "g"
SrcPort 1
DstBlock "Mux"
DstPort 7
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Simulaiton Parameters\n"
DstPort 1
}
}
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 7]
Position [360, 787, 380, 1613]
BackgroundColor "black"
ShowName off
FontSize 12
Outputs "7"
BusSelectionMode on
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [275, 635, 335, 685]
FontSize 12
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [465, 400, 525, 450]
FontSize 12
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator2"
Ports [1, 1]
Position [465, 480, 525, 530]
FontSize 12
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator3"
Ports [1, 1]
Position [275, 700, 335, 750]
FontSize 12
IgnoreLimit off
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [2, 1]
Position [1215, 716, 1250, 794]
FontSize 12
Operator "pow"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [2, 1]
Position [1380, 1346, 1415, 1424]
FontSize 12
Operator "pow"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [1495, 1414, 1525, 1446]
FontSize 12
Floating off
Location [5, 53, 1029, 743]
Open off
NumInputPorts "1"
List {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -