📄 exm085_1s.mdl
字号:
Model {
Name "exm85_1"
Version 4.00
SampleTimeColors on
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip on
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Mon Dec 13 16:31:42 1999"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Fri Dec 08 14:28:18 2000"
ModelVersionFormat "1.%<AutoIncrement:6>"
ConfigurationManager "none"
SimParamPage "Solver"
StartTime "0.0"
StopTime "10.0"
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 "exm85_1"
Location [20, 130, 535, 373]
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 "Command"
Position [290, 184, 335, 206]
Orientation "left"
Value "0.75"
VectorParams1D on
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [405, 180, 495, 210]
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType Fcn
Name "Fcn"
Position [85, 45, 145, 75]
Orientation "left"
Expr "0.05*sin(u)"
}
Block {
BlockType Gain
Name "G1"
Position [215, 90, 245, 120]
NamePlacement "alternate"
Gain "0.1"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "G2"
Position [110, 136, 170, 164]
Orientation "left"
Gain "0.094"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Kp"
Position [75, 165, 105, 195]
Orientation "left"
Gain "1"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "u(k)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [465, 144, 495, 176]
NamePlacement "alternate"
Floating off
Location [223, 235, 547, 474]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace on
SaveName "TX"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [60, 90, 90, 120]
ShowName off
IconShape "round"
Inputs "-++"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "x2(k+1)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [265, 74, 285, 116]
ShowName off
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "x1(k+1)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [205, 142, 220, 213]
Orientation "left"
ShowName off
IconShape "rectangular"
Inputs "-+"
SaturateOnIntegerOverflow on
}
Block {
BlockType UnitDelay
Name "UD1"
Position [335, 75, 370, 115]
NamePlacement "alternate"
X0 "0"
SampleTime "0.1"
Port {
PortNumber 1
Name "x1(k)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType UnitDelay
Name "UD2"
Position [145, 85, 180, 125]
NamePlacement "alternate"
X0 "0"
SampleTime "0.1"
Port {
PortNumber 1
Name "x2(k)"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType ZeroOrderHold
Name "ZOH1"
Position [290, 148, 335, 172]
Orientation "left"
NamePlacement "alternate"
SampleTime "0.25"
}
Block {
BlockType ZeroOrderHold
Name "ZOH2"
Position [405, 148, 450, 172]
NamePlacement "alternate"
SampleTime "0.5"
}
Line {
Name "x2(k+1)"
Labels [1, 0]
SrcBlock "Sum"
SrcPort 1
DstBlock "UD2"
DstPort 1
}
Line {
SrcBlock "G1"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
Name "x1(k+1)"
Labels [1, 0]
SrcBlock "Sum1"
SrcPort 1
DstBlock "UD1"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
Points [-5, 0]
DstBlock "Sum"
DstPort 1
}
Line {
Name "x2(k)"
Labels [0, 1]
SrcBlock "UD2"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "G1"
DstPort 1
}
Branch {
Points [0, 45]
DstBlock "G2"
DstPort 1
}
}
Line {
SrcBlock "G2"
SrcPort 1
Points [-30, 0]
DstBlock "Sum"
DstPort 3
}
Line {
Name "x1(k)"
SrcBlock "UD1"
SrcPort 1
Points [5, 0]
Branch {
Labels [2, 1]
Points [0, -35; -140, 0]
Branch {
DstBlock "Fcn"
DstPort 1
}
Branch {
Points [0, 25]
DstBlock "Sum1"
DstPort 1
}
}
Branch {
Points [0, 65]
Branch {
DstBlock "ZOH2"
DstPort 1
}
Branch {
DstBlock "ZOH1"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Display"
DstPort 1
}
}
}
Line {
SrcBlock "ZOH1"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "ZOH2"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
Name "u(k)"
Labels [0, 0]
SrcBlock "Kp"
SrcPort 1
Points [-25, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Kp"
DstPort 1
}
Line {
SrcBlock "Command"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Annotation {
Position [53, 82]
Text "Sum1"
}
Annotation {
Position [214, 132]
Text "Sum3"
}
Annotation {
Position [276, 129]
Text "Sum2"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -