📄 cruisesystem2.mdl
字号:
Model {
Name "cruisesystem2"
Version 4.00
SampleTimeColors on
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovNameIncrementing off
CovHtmlReporting on
BlockParametersDataTip on
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Wed Jun 28 13:38:59 2000"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "obas"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Thu Aug 17 11:08:12 2000"
ModelVersionFormat "1.%<AutoIncrement:7>"
ConfigurationManager "none"
DefaultBlockFontName "Helvetica"
DefaultBlockFontSize 10
DefaultBlockFontWeight "normal"
DefaultBlockFontAngle "normal"
DefaultAnnotationFontName "Helvetica"
DefaultAnnotationFontSize 10
DefaultAnnotationFontWeight "normal"
DefaultAnnotationFontAngle "normal"
DefaultLineFontName "Helvetica"
DefaultLineFontSize 9
DefaultLineFontWeight "normal"
DefaultLineFontAngle "normal"
SimParamPage "Solver"
StartTime "0.0"
StopTime "10"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
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 "Array"
LimitDataPoints off
MaxDataPoints "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
SingleTaskRateTransMsg "none"
MultiTaskRateTransMsg "error"
IntegerOverflowMsg "warning"
CheckForMatrixSingularity "none"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
LinearizationMsg "none"
VectorMatrixConversionMsg "none"
SfunCompatibilityCheckMsg "none"
BlockPriorityViolationMsg "warning"
ArrayBoundsChecking "none"
ConsistencyChecking "none"
ZeroCross on
Profile off
SimulationMode "normal"
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
TLCProfiler off
TLCDebug off
TLCCoverage off
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
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
ExtModeLogAll on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt off
BooleanDataType off
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 "cruisesystem2"
Location [360, 271, 920, 483]
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 Constant
Name "Constant"
Position [20, 90, 50, 120]
Value "1"
VectorParams1D on
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [495, 84, 525, 116]
Floating off
Location [591, 108, 915, 347]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "42.75"
YMax "47.25"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [175, 95, 195, 115]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Reference
Name "car dynamics"
Ports [1, 1]
Position [375, 74, 440, 126]
SourceBlock "simclasslib/car dynamics"
SourceType "SubSystem"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
}
Block {
BlockType SubSystem
Name "discrete cruise controller"
Ports [1, 1]
Position [235, 75, 335, 125]
AncestorBlock "simclasslib/discrete cruise controller"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "discrete cruise controller"
Location [404, 299, 902, 582]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "error"
Position [15, 143, 45, 157]
Port "1"
Interpolate on
}
Block {
BlockType Gain
Name "Gain"
Position [340, 135, 370, 165]
Gain "0"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain1"
Position [340, 190, 370, 220]
Gain "1"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain2"
Position [345, 60, 375, 90]
Gain ".01"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [185, 140, 205, 160]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "d(n)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [100, 85, 120, 105]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "x(n)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [400, 140, 420, 160]
ShowName off
IconShape "round"
Inputs "+++"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "x(n)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [135, 190, 170, 230]
X0 "0"
SampleTime ".02"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [55, 25, 90, 65]
Orientation "left"
X0 "0"
SampleTime ".02"
Port {
PortNumber 1
Name "x(n-1)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [65, 131, 95, 169]
SampleTime ".02"
}
Block {
BlockType Outport
Name "force"
Position [445, 143, 475, 157]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
Name "x(n)"
Labels [0, 0]
SrcBlock "Sum2"
SrcPort 1
DstBlock "force"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [35, 0]
DstBlock "Sum2"
DstPort 3
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [30, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
Name "d(n)"
Labels [0, 0]
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
Name "x(n)"
Labels [0, 0]
SrcBlock "Sum1"
SrcPort 1
Points [0, -15; 0, 0]
Branch {
Points [205, 0]
DstBlock "Gain2"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Unit Delay1"
DstPort 1
}
}
Line {
Name "x(n-1)"
Labels [0, 0]
SrcBlock "Unit Delay1"
SrcPort 1
Points [-20, 0; 0, 50]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "error"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [20, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
Points [0, 0]
Branch {
Points [0, -30]
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [5, 0]
Branch {
Points [0, 60]
Branch {
Points [0, 45; 220, 0]
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, 0]
DstBlock "Unit Delay"
DstPort 1
}
}
Branch {
Labels [1, 0]
DstBlock "Sum"
DstPort 1
}
}
}
}
}
Block {
BlockType Reference
Name "set speed"
Ports [1, 1]
Position [80, 79, 155, 131]
SourceBlock "simclasslib/set speed"
SourceType "SubSystem"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [20, 0]
DstBlock "discrete cruise controller"
DstPort 1
}
Line {
SrcBlock "car dynamics"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, 75; -290, 0]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "set speed"
DstPort 1
}
Line {
SrcBlock "set speed"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "discrete cruise controller"
SrcPort 1
DstBlock "car dynamics"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -