📄 sldemo_wheelspeed_absbrake_digest.mdl
字号:
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [35, 30, 55, 50]
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant"
Position [65, 105, 85, 125]
Value "0"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion1"
Position [210, 36, 265, 64]
ShowName off
OutDataTypeMode "double"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion2"
Position [210, 96, 265, 124]
ShowName off
OutDataTypeMode "double"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [140, 32, 170, 63]
Operator ">"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [140, 92, 170, 123]
Operator "<"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [305, 64, 325, 91]
Inputs "+-"
}
Block {
BlockType Outport
Name "out_1"
Position [360, 70, 380, 90]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Data Type Conversion2"
SrcPort 1
Points [20, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Data Type Conversion1"
SrcPort 1
Points [20, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "Data Type Conversion1"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
DstBlock "Data Type Conversion2"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -60]
DstBlock "Relational\nOperator"
DstPort 2
}
Branch {
DstBlock "Relational\nOperator1"
DstPort 2
}
}
Line {
SrcBlock "in_1"
SrcPort 1
Points [35, 0]
Branch {
Points [0, 60]
DstBlock "Relational\nOperator1"
DstPort 1
}
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
}
}
}
Block {
BlockType Integrator
Name "Brake\npressure"
Ports [1, 1]
Position [235, 135, 275, 165]
LimitOutput on
UpperSaturationLimit "PBmax"
LowerSaturationLimit "0"
IgnoreLimit off
}
Block {
BlockType Gain
Name "Force &\ntorque"
Position [305, 132, 345, 168]
Gain "Kf"
Port {
PortNumber 1
Name "brake torque"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
DataLoggingName "%<SignalLabel>"
}
}
Block {
BlockType TransferFcn
Name "Hydraulic Lag "
Position [155, 132, 210, 168]
Numerator "[100]"
Denominator "[TB 1]"
}
Block {
BlockType SubSystem
Name "More Info1"
Ports []
Position [25, 30, 49, 53]
DropShadow on
ShowName off
OpenFcn "showdemo('sldemo_absbrake')"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDisplay "disp('?')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "More Info1"
Location [98, 267, 744, 691]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [405, 140, 425, 160]
ShowName off
IconShape "round"
Inputs "|-+"
}
Block {
BlockType Integrator
Name "Wheel\nSpeed"
Ports [1, 1]
Position [500, 129, 530, 171]
InitialCondition "v0/Rr"
LimitOutput on
UpperSaturationLimit "1000"
LowerSaturationLimit "0"
IgnoreLimit off
Port {
PortNumber 1
Name "Ww"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
DataLoggingName "%<SignalLabel>"
}
}
Block {
BlockType Outport
Name "WheelSpeed"
Position [580, 143, 610, 157]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType SignalViewerScope
Name "Scope"
Ports []
Position [20, 15, 60, 55]
IOType "viewer"
Location [103, 518, 427, 757]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
ShowDataMarkers off
ShowLegends off
TimeRange "15"
YMin "0"
YMax "800"
DataFormat "Array"
MaxDataPoints "7500"
RefreshTime 0.035000
Disabled off
}
Line {
Name "tire torque"
Labels [0, 0]
SrcBlock "Tire Torque"
SrcPort 1
Points [160, 0]
DstBlock "Sum"
DstPort 2
}
Line {
Name "Ww"
Labels [0, 0]
SrcBlock "Wheel\nSpeed"
SrcPort 1
Points [0, 0]
DstBlock "WheelSpeed"
DstPort 1
}
Line {
SrcBlock "Input"
SrcPort 1
DstBlock "Bang-bang\ncontroller"
DstPort 1
}
Line {
SrcBlock "Hydraulic Lag "
SrcPort 1
DstBlock "Brake\npressure"
DstPort 1
}
Line {
SrcBlock "Bang-bang\ncontroller"
SrcPort 1
Points [0, 0]
DstBlock "Hydraulic Lag "
DstPort 1
}
Line {
SrcBlock "Brake\npressure"
SrcPort 1
Points [0, 0]
DstBlock "Force &\ntorque"
DstPort 1
}
Line {
Name "brake torque"
Labels [0, 0]
SrcBlock "Force &\ntorque"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "1/I"
DstPort 1
}
Line {
SrcBlock "1/I"
SrcPort 1
Points [0, 0]
DstBlock "Wheel\nSpeed"
DstPort 1
}
Annotation {
Name "Calculate the Wheel Speed for the\nAnti-Lock Br"
"aking System (ABS) Simulation "
Position [307, 22]
VerticalAlignment "top"
UseDisplayTextAsClickCallback off
FontSize 14
}
Annotation {
Name "Copyright 1990-2005 The MathWorks Inc."
Position [301, 306]
UseDisplayTextAsClickCallback off
}
}
}
MatData {
NumRecords 1
DataRecord {
Tag DataTag0
Data " %)30 . ( , 8 ( @ % "
"\" $ & 0 % 0 !@ $ , 3F%M90 5F%L=64 X P"
" !@ @ $ 4 ( 0 ( ! ! @!40@ #@ #@ "
" & \" 8 !0 @ ! 0 $ \"0 @ ![%*Y'X7J$"
"/PX X !@ @ $ 4 ( 0 4 ! ! % 4"
"$)M87@ . . 8 ( !@ % \" $ ! 0 ) "
" \" <)= #@ # & \" 0 !0 @ ! @ $ "
" $ \" $MF . . 8 ( !@ % \" $ ! 0 "
" ) \" / _#@ # & \" 0 !0 @ ! "
" 0 $ $ ! $D . . 8 ( !@ % \" $ "
" ! 0 ) \" !1 #@ # & \" 0 !0 "
" @ ! @ $ $ \" '8P . . 8 ( !@ % "
"\" $ ! 0 ) \" %9 #@ # & \" 0 "
" !0 @ ! @ $ $ \" %)R . . 8 ( !@ "
" % \" $ ! 0 ) \" /0_"
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -