📄 sga__suspension_flc_quarter.mdl
字号:
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 Sin
SineType "Time based"
TimeSource "Use simulation time"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
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 ToFile
Filename "untitled.mat"
MatrixName "ans"
Decimation "1"
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"
Location [2, 78, 998, 728]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "62"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name " white noise"
Ports [0, 1]
Position [65, 373, 205, 407]
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 Constant
Name "0"
Position [490, 1005, 520, 1035]
FontSize 12
Value "0"
}
Block {
BlockType SubSystem
Name "1/4 vehicle passive suspension system"
Ports [2, 3]
Position [645, 752, 965, 1108]
ForegroundColor "blue"
BackgroundColor "blue"
DropShadow on
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDescription "1/4 passive vehicle suspension system\nleo.chen"
".yi@gmail.com"
MaskPromptString "Sprung mass-m1(kg)|Unsprung mass-m2(kg)|Stiffne"
"ss 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_passive.j"
"pg'));"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "36|240|160000|16000|1400|300|9.8"
MaskTabNameString ",,,,,,"
System {
Name "1/4 vehicle passive suspension system"
Location [2, 74, 998, 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 [205, 998, 235, 1022]
FontSize 12
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "fd"
Position [1545, 1052, 1575, 1078]
Orientation "left"
FontSize 12
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Gain
Name "-1"
Position [845, 695, 875, 725]
FontSize 12
Gain "-1"
}
Block {
BlockType Constant
Name "Constant2=-1"
Position [1400, 1435, 1430, 1465]
FontSize 12
Value "-1"
}
Block {
BlockType Constant
Name "Constant=-1"
Position [1240, 805, 1270, 835]
FontSize 12
Value "-1"
}
Block {
BlockType SubSystem
Name "Data Inputs"
Ports [0, 1]
Position [160, 1209, 290, 1281]
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 [265, 500, 295, 530]
Value "fr"
}
Block {
BlockType Mux
Name "Mux"
Ports [7, 1]
Position [410, 104, 515, 626]
ShowName off
Inputs "7"
DisplayOption "bar"
}
Block {
BlockType Constant
Name "c0"
Position [265, 425, 295, 455]
Value "c0"
}
Block {
BlockType Constant
Name "g"
Position [260, 575, 290, 605]
Value "g"
}
Block {
BlockType Constant
Name "k1"
Position [265, 275, 295, 305]
Value "k1"
}
Block {
BlockType Constant
Name "k2"
Position [265, 350, 295, 380]
Value "k2"
}
Block {
BlockType Constant
Name "m1"
Position [265, 125, 295, 155]
Value "m1"
}
Block {
BlockType Constant
Name "m2"
Position [265, 200, 295, 230]
Value "m2"
}
Block {
BlockType Outport
Name "Simulaiton Parameters\n"
Position [765, 358, 795, 372]
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
Points [0, 0]
DstBlock "Mux"
DstPort 6
}
Line {
SrcBlock "g"
SrcPort 1
DstBlock "Mux"
DstPort 7
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0]
DstBlock "Simulaiton Parameters\n"
DstPort 1
}
}
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 7]
Position [445, 832, 465, 1658]
BackgroundColor "black"
ShowName off
FontSize 12
Outputs "7"
BusSelectionMode on
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [360, 680, 420, 730]
FontSize 12
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [550, 445, 610, 495]
FontSize 12
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator2"
Ports [1, 1]
Position [550, 525, 610, 575]
FontSize 12
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator3"
Ports [1, 1]
Position [360, 745, 420, 795]
FontSize 12
IgnoreLimit off
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [2, 1]
Position [1300, 761, 1335, 839]
FontSize 12
Operator "pow"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [2, 1]
Position [1465, 1391, 1500, 1469]
FontSize 12
Operator "pow"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [1580, 1459, 1610, 1491]
FontSize 12
Floating off
Location [5, 53, 1029, 743]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData5"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [945, 735, 965, 755]
ShowName off
FontSize 12
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum2"
Ports [6, 1]
Position [1235, 865, 1345, 975]
ShowName off
FontSize 12
IconShape "round"
Inputs "|++++-+"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [290, 930, 310, 950]
ShowName off
FontSize 12
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum4"
Ports [5, 1]
Position [1470, 1210, 1560, 1300]
ShowName off
FontSize 12
IconShape "round"
Inputs "|++---"
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [610, 820, 630, 840]
ShowName off
FontSize 12
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Product
Name "c0*(dz1-dz2)"
Ports [2, 1]
Position [750, 1289, 765, 1391]
FontSize 12
}
Block {
BlockType Gain
Name "gain2=-1"
Position [1395, 905, 1425, 935]
FontSize 12
Gain "-1"
}
Block {
BlockType Gain
Name "gain3=-1"
Position [1300, 1325, 1330, 1355]
FontSize 12
Gain "-1"
}
Block {
BlockType Gain
Name "gain4=-1"
Position [1305, 1210, 1335, 1240]
FontSize 12
Gain "-1"
}
Block {
BlockType Product
Name "k1*(z1-q)"
Ports [2, 1]
Position [780, 1049, 795, 1151]
FontSize 12
}
Block {
BlockType Product
Name "k2*(z1-z2)"
Ports [2, 1]
Position [580, 1186, 595, 1264]
FontSize 12
}
Block {
BlockType Product
Name "m1ddz1/m1"
Ports [2, 1]
Position [1590, 741, 1610, 979]
FontSize 12
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -