📄 sldemo_absbrake_digest0.mdl
字号:
Name "BrakeSignal"
Tag "STV Outport"
Position [280, 30, 300, 40]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [50, 0; 0, -285]
DstBlock "BrakeSignal"
DstPort 1
}
Line {
SrcBlock "FromWs"
SrcPort 1
Points [5, 0; 0, -5]
DstBlock "Demux"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "More Info1"
Ports []
Position [20, 15, 44, 38]
DropShadow on
ShowName off
OpenFcn "showdemo(bdroot(gcb))"
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 SubSystem
Name "Tires"
Ports [2, 1]
Position [365, 90, 520, 150]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Tires"
Location [291, 225, 1225, 641]
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 "130"
Block {
BlockType Inport
Name "BrakeSignal"
Position [135, 43, 165, 57]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "VehicleSpeed"
Position [145, 213, 175, 227]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType SubSystem
Name "Brakes"
Ports [2, 1]
Position [425, 39, 540, 101]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
Port {
PortNumber 1
Name "Ww"
PropagatedSignals "Ww"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
System {
Name "Brakes"
Location [90, 386, 1088, 644]
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 "131"
Block {
BlockType Inport
Name "BrakeSignal"
Position [25, 78, 55, 92]
IconDisplay "Port number"
SampleTime "0"
}
Block {
BlockType Inport
Name "Tire Torque"
Position [335, 193, 365, 207]
Port "2"
IconDisplay "Port number"
Port {
PortNumber 1
PropagatedSignals "tire torque"
ShowPropagatedSignals "on"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Gain
Name "1/I"
Position [530, 68, 560, 102]
ShowName off
Gain "1/I"
}
Block {
BlockType Gain
Name "1/I1"
Position [125, 68, 140, 102]
ShowName off
}
Block {
BlockType SubSystem
Name "Bang-bang\ncontroller"
Ports [1, 1]
Position [75, 70, 105, 100]
ShowPortLabels off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Sign"
MaskDescription "y = sign(x)"
MaskHelp "Sign Function:\\n\\t\\t\\ty = 1 if x > "
"0\\n\\t\\t\\ty = 0 if x = 0\\n\\t\\t\\ty = -1 if x < 0"
MaskDisplay "plot(-50,-50,50,50,[-50,50],[0,0],[0,0]"
",[-50,50],[-40,0],[-30,-30],[0,40],[30,30])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Bang-bang\ncontroller"
Location [163, 412, 609, 606]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
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 [240, 70, 280, 100]
LimitOutput on
UpperSaturationLimit "PBmax"
LowerSaturationLimit "0"
IgnoreLimit off
}
Block {
BlockType Gain
Name "Force &\ntorque"
Position [310, 67, 350, 103]
Gain "Kf"
Port {
PortNumber 1
Name "brake torque"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
DataLoggingName "%<SignalLabel>"
}
}
Block {
BlockType TransferFcn
Name "Hydraulic Lag "
Position [160, 67, 215, 103]
Numerator "[100]"
Denominator "[TB 1]"
}
Block {
BlockType MinMax
Name "MinMax"
Ports [2, 1]
Position [385, 142, 415, 173]
Function "min"
Inputs "2"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Relay
Name "Relay"
Position [495, 235, 520, 265]
Orientation "left"
OnSwitchValue "1"
OffSwitchValue "-1"
ZeroCross off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [485, 75, 505, 95]
ShowName off
IconShape "round"
Inputs "|-+"
}
Block {
BlockType Switch
Name "Switch"
Position [440, 70, 470, 100]
Criteria "u2 ~= 0"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Integrator
Name "Wheel\nSpeed"
Ports [1, 1]
Position [580, 64, 610, 106]
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 [690, 78, 720, 92]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "1/I"
SrcPort 1
DstBlock "Wheel\nSpeed"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "Sum"
SrcPort 1
DstBlock "1/I"
DstPort 1
}
Line {
Name "brake torque"
SrcBlock "Force &\ntorque"
SrcPort 1
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -