📄 chap3_5sim.mdl
字号:
Model {
Name "chap3_5sim"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "2"
SolverMode "Auto"
Solver "FixedStepDiscrete"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime off
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput off
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Matrix"
LimitMaxRows off
MaxRows "1000"
Decimation "100"
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 "Sat Jun 17 11:08:48 2000"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "liu"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Tue Dec 07 11:37:49 2004"
ModelVersionFormat "1.%<AutoIncrement:449>"
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 "chap3_5sim"
Location [14, 74, 810, 555]
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 Clock
Name "Clock"
Position [40, 269, 75, 301]
DisplayTime on
Decimation "1"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3, 0, 0, 0]
Position [350, 204, 360, 256]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType DiscreteStateSpace
Name "Discrete State-Space"
Position [450, 210, 555, 250]
A "A"
B "B"
C "C"
D "D"
X0 "[-0.5,-0.5]"
SampleTime "T"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1, 0, 0, 0]
Position [595, 194, 625, 241]
ShowName off
Inputs "2"
DisplayOption "none"
}
Block {
BlockType Mux
Name "Mux1"
Ports [5, 1, 0, 0, 0]
Position [245, 158, 260, 302]
ShowName off
Inputs "5"
DisplayOption "bar"
}
Block {
BlockType "S-Function"
Name "S-Function1"
Ports [1, 1, 0, 0, 0]
Position [280, 213, 335, 247]
FunctionName "chap3_5s"
PortCounts "[]"
SFunctionModules "''"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Saturate
Name "Saturation"
Position [400, 186, 415, 214]
UpperLimit "10"
LowerLimit "-10"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [50, 152, 75, 188]
Amplitude "0.5"
Frequency "3*2*pi"
Phase "0"
SampleTime "0.001"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [105, 273, 135, 297]
VariableName "t"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace5"
Position [645, 210, 670, 230]
VariableName "y"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace6"
Position [480, 160, 510, 180]
VariableName "u"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace7"
Position [415, 275, 445, 295]
VariableName "e"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType ToWorkspace
Name "To Workspace8"
Position [415, 320, 445, 340]
VariableName "de"
Buffer "inf"
Decimation "1"
SampleTime "-1"
SaveFormat "Matrix"
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [135, 191, 160, 209]
X0 "0"
SampleTime "0.001"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [200, 220, 225, 240]
X0 "0"
SampleTime "0.001"
}
Block {
BlockType UnitDelay
Name "Unit Delay2"
Position [195, 280, 220, 300]
X0 "0"
SampleTime "0.001"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "To Workspace5"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "S-Function1"
DstPort 1
}
Line {
SrcBlock "Discrete State-Space"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, 135; -405, 0; 0, -75]
Branch {
Points [0, -30]
DstBlock "Mux1"
DstPort 4
}
Branch {
DstBlock "Unit Delay2"
DstPort 1
}
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [30, 0]
Branch {
Points [0, -25; 455, 0; 0, 60]
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Unit Delay"
DstPort 1
}
Branch {
DstBlock "Mux1"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, 30]
DstBlock "Unit Delay1"
DstPort 1
}
}
Line {
SrcBlock "Unit Delay2"
SrcPort 1
DstBlock "Mux1"
DstPort 5
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "S-Function1"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [20, 0; 0, 55]
DstBlock "To Workspace7"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [5, 0; 0, 85]
DstBlock "To Workspace8"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [5, 0; 0, -15]
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Discrete State-Space"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "To Workspace6"
DstPort 1
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -