?? exm09434_1.mdl
字號:
Model {
Name "exm94341"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "50.0"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Matrix"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
IntegerOverflowMsg "warning"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
ConsistencyChecking "off"
ZeroCross on
SimulationMode "normal"
BlockDataTips on
BlockParametersDataTip on
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
OptimizeBlockIOStorage on
BufferReuse on
BooleanDataType off
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "oneshot"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect off
Created "Tue Dec 07 20:58:32 1999"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sun Dec 12 20:19:03 1999"
ModelVersionFormat "1.%<AutoIncrement:14>"
ConfigurationManager "none"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "exm94341"
Location [33, 141, 596, 465]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType Display
Name "ActiveSpeed"
Ports [1, 0, 0, 0, 0]
Position [370, 180, 460, 210]
Orientation "left"
NamePlacement "alternate"
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType SubSystem
Name "Automobile Model"
Ports [2, 1, 0, 0, 0]
Position [380, 72, 510, 128]
NamePlacement "alternate"
ShowPortLabels on
MaskType "Car Model"
MaskDescription "This block models an automobile dynamics.\n本模"
"塊仿真轎車動力學。"
MaskHelp "The input of this block is a commanded thrust, "
"and the output is an active speed of the car."
MaskPromptString "最大發動機動力Fmax|最大制動力Fmin|路面起伏系數k"
"h|陣風強度系數kw"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskVariables "Fmax=@1;Fmin=@2;kh=@3;kw=@4;"
MaskInitialization "tt=[0:10]/10*2*pi;\nx=cos(tt);\ny=sin(tt);"
MaskDisplay "plot([0.37,0.4,0.55,0.62,0.37],[0.4,0.5,0.5,0.4"
",0.4])\nplot([0.3,0.3,0.7,0.7,0.3],[0.25,0.4,0.4,0.25,0.25])\nplot(0.37+0.05*"
"x,0.18+0.05*y,0.62+0.05*x,0.18+0.05*y)\ntext(0.28,0.7,'轎車模型')\n"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "port"
MaskIconUnits "normalized"
MaskValueString "1000|-2000|20|30"
Port {
PortNumber 1
Name "x'"
TestPoint off
RTWStorageClass "Auto"
}
System {
Name "Automobile Model"
Location [79, 74, 612, 300]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "FcIn"
Position [25, 93, 55, 107]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "ClockIn"
Position [460, 138, 490, 152]
Orientation "left"
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Fcn
Name "FH"
Position [375, 170, 435, 200]
Orientation "left"
Expr "kh*sin(0.0001*u)"
Port {
PortNumber 1
Name "Fh"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Fcn
Name "FW"
Position [300, 125, 360, 155]
Orientation "left"
Expr "0.001*(u[1]+kw*sin(0.01*u[2]))^2"
Port {
PortNumber 1
Name "Fw"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Integrator
Name "Int1"
Ports [1, 1, 0, 0, 0]
Position [385, 70, 415, 100]
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
Port {
PortNumber 1
Name "x'"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Integrator
Name "Int2"
Ports [1, 1, 0, 0, 0]
Position [460, 70, 490, 100]
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
Port {
PortNumber 1
Name "x"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Gain
Name "InvMass"
Position [310, 69, 355, 101]
NamePlacement "alternate"
Gain "0.01"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "x''"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType MinMax
Name "LowLim"
Ports [2, 1, 0, 0, 0]
Position [180, 26, 205, 99]
Function "max"
Inputs "2"
Port {
PortNumber 1
Name " Fe"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Constant
Name "Max Brake"
Position [125, 35, 160, 55]
Value "Fmin"
}
Block {
BlockType Constant
Name "Max Thrust"
Position [25, 46, 60, 64]
Value "Fmax"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1, 0, 0, 0]
Position [400, 124, 405, 151]
Orientation "left"
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1, 0, 0, 0]
Position [255, 53, 275, 117]
ShowName off
IconShape "rectangular"
Inputs "+--"
SaturateOnIntegerOverflow on
}
Block {
BlockType MinMax
Name "UpLim"
Ports [2, 1, 0, 0, 0]
Position [90, 34, 115, 121]
Function "min"
Inputs "2"
}
Block {
BlockType Outport
Name "SaOut"
Position [420, 35, 450, 50]
Orientation "up"
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Max Thrust"
SrcPort 1
DstBlock "UpLim"
DstPort 1
}
Line {
SrcBlock "UpLim"
SrcPort 1
DstBlock "LowLim"
DstPort 2
}
Line {
SrcBlock "Max Brake"
SrcPort 1
DstBlock "LowLim"
DstPort 1
}
Line {
Name " Fe"
Labels [1, 0]
SrcBlock "LowLim"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "InvMass"
DstPort 1
}
Line {
Name "x''"
Labels [-1, 1]
SrcBlock "InvMass"
SrcPort 1
DstBlock "Int1"
DstPort 1
}
Line {
Name "x'"
Labels [1, 0]
SrcBlock "Int1"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 45]
DstBlock "Mux"
DstPort 1
}
Branch {
DstBlock "Int2"
DstPort 1
}
Branch {
DstBlock "SaOut"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "FW"
DstPort 1
}
Line {
Name "Fw"
Labels [-1, 1]
SrcBlock "FW"
SrcPort 1
Points [-55, 0]
DstBlock "Sum1"
DstPort 3
}
Line {
Name "Fh"
Labels [3, 0]
SrcBlock "FH"
SrcPort 1
Points [-150, 0; 0, -100]
DstBlock "Sum1"
DstPort 2
}
Line {
Name "x"
Labels [1, 0]
SrcBlock "Int2"
SrcPort 1
Points [10, 0; 0, 100]
DstBlock "FH"
DstPort 1
}
Line {
SrcBlock "ClockIn"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "FcIn"
SrcPort 1
DstBlock "UpLim"
DstPort 2
}
Annotation {
Position [263, 47]
Text "Sum1"
}
Annotation {
Position [401, 158]
Text "Mux"
}
}
}
Block {
BlockType Clock
Name "Clock"
Position [390, 255, 410, 275]
Orientation "left"
DisplayTime off
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [130, 214, 170, 236]
Orientation "left"
NamePlacement "alternate"
Value "1"
}
Block {
BlockType Reference
Name "DesiredSpeed "
Ports [1, 1, 0, 0, 0]
Position [50, 215, 115, 235]
Orientation "left"
NamePlacement "alternate"
SourceBlock "simulink3/Math/Slider\nGain"
SourceType "Slider Gain"
low "0"
gain "90"
high "100"
Port {
PortNumber 1
Name "x'c"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType SubSystem
Name "Model Selector"
Ports [2, 3, 0, 0, 0]
Position [50, 80, 140, 130]
ShowPortLabels on
System {
Name "Model Selector"
Location [31, 74, 558, 319]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "SaIn -"
Position [15, 98, 45, 112]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "ScIn +"
Position [15, 133, 45, 147]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Abs
Name "Abs"
Position [100, 116, 130, 134]
}
Block {
BlockType Abs
Name "Abs1"
Position [180, 170, 210, 190]
}
Block {
BlockType Derivative
Name "Derivative"
Position [110, 170, 140, 190]
}
Block {
BlockType Logic
Name "Logic1"
Ports [2, 1, 0, 0, 0]
Position [285, 147, 315, 178]
Operator "AND"
Inputs "2"
}
Block {
BlockType Logic
Name "Logic2"
Ports [2, 1, 0, 0, 0]
Position [285, 57, 315, 88]
Operator "AND"
Inputs "2"
}
Block {
BlockType Logic
Name "Logic3"
Ports [2, 1, 0, 0, 0]
Position [355, 92, 375, 128]
Operator "OR"
Inputs "2"
}
Block {
BlockType Logic
Name "Logic4"
Ports [1, 1, 0, 0, 0]
Position [405, 54, 435, 76]
Operator "NOT"
Inputs "2"
}
Block {
BlockType Memory
Name "Memory"
Position [325, 25, 355, 55]
Orientation "left"
X0 "0"
InheritSampleTime on
}
Block {
BlockType Constant
Name "PI DVmax"
Position [150, 206, 175, 224]
Value "1"
}
Block {
BlockType Constant
Name "PI Vmax1"
Position [150, 131, 175, 149]
Value "2"
}
Block {
BlockType Constant
Name "PI Vmax2"
Position [150, 61, 175, 79]
Value "5"
}
Block {
BlockType RelationalOperator
Name "RDV"
Position [230, 173, 255, 202]
Operator "<="
}
Block {
BlockType RelationalOperator
Name "RV1"
Position [230, 117, 255, 148]
Operator "<="
}
Block {
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -