📄 order11.mdl
字号:
Model {
Name "order11"
Version 4.00
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Sat Feb 09 07:58:52 2002"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Wed Apr 10 15:21:50 2002"
ModelVersionFormat "1.%<AutoIncrement:8>"
ConfigurationManager "customverctrl"
SimParamPage "Solver"
StartTime "0.0"
StopTime "100.0"
SolverMode "SingleTasking"
Solver "ode4"
RelTol "1e-3"
AbsTol "1e-6"
Refine "1"
MaxStep ".01"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep ".01"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[0 50]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "t"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "y"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
LimitDataPoints on
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_vc.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 "normal"
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 on
ExtModeLogAll on
OptimizeBlockIOStorage off
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 "order11"
Location [32, 74, 506, 268]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType Display
Name "Disp"
Ports [1]
Position [375, 70, 460, 100]
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType Step
Name "F(s)"
Position [250, 20, 280, 40]
Orientation "left"
Time "0"
Before "0"
After "0"
SampleTime ".1"
VectorParams1D on
}
Block {
BlockType SubSystem
Name "Gp(s)"
Ports [1, 1]
Position [230, 57, 325, 113]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "Kp|Tp|tor"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVariables "Kp=@1;Tp=@2;tor=@3;"
MaskDisplay "disp('Kp \\n----------exp(-s*tor)"
"\\nTps+1 ')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1|10|3"
MaskVariableAliases ",,"
System {
Name "Gp(s)"
Location [408, 153, 753, 259]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
Port "1"
Interpolate on
}
Block {
BlockType TransferFcn
Name "object"
Position [90, 27, 150, 63]
Numerator "[Kp]"
Denominator "[Tp 1]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType TransportDelay
Name "tor"
Position [175, 30, 205, 60]
DelayTime "tor"
InitialInput "0"
BufferSize "1024"
PadeOrder "0"
}
Block {
BlockType Outport
Name "Out1"
Position [230, 38, 260, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "object"
SrcPort 1
DstBlock "tor"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "object"
DstPort 1
}
Line {
SrcBlock "tor"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "PID"
Ports [1, 1]
Position [125, 74, 165, 106]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "放大系数|积分时间|微分时间"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVariables "Kc=@1;Ti=@2;Td=@3;"
MaskDisplay "disp('PID')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "3.0303|9.9|0"
MaskVariableAliases ",,"
System {
Name "PID"
Location [195, 287, 693, 455]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [45, 73, 75, 87]
Port "1"
Interpolate on
}
Block {
BlockType Gain
Name "1/Ti"
Position [160, 65, 190, 95]
Gain "1/Ti"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Derivative
Name "D"
Position [225, 118, 265, 142]
}
Block {
BlockType TransferFcn
Name "I"
Position [220, 62, 250, 98]
Numerator "[1]"
Denominator "[1 0]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType Gain
Name "K"
Position [95, 65, 125, 95]
Gain "Kc"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [305, 62, 325, 98]
IconShape "rectangular"
Inputs "+++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Td"
Position [165, 115, 195, 145]
Gain "Td"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Out1"
Position [350, 73, 380, 87]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "1/Ti"
SrcPort 1
DstBlock "I"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "K"
DstPort 1
}
Line {
SrcBlock "K"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "1/Ti"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Td"
DstPort 1
}
Branch {
Points [0, -45; 150, 0; 0, 35]
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "I"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "D"
SrcPort 1
Points [15, 0; 0, -40]
DstBlock "Sum1"
DstPort 3
}
Line {
SrcBlock "Td"
SrcPort 1
DstBlock "D"
DstPort 1
}
}
}
Block {
BlockType Step
Name "R(s)"
Position [25, 68, 55, 92]
Time "0"
Before "0"
After "1"
SampleTime ".1"
VectorParams1D on
}
Block {
BlockType Scope
Name "SC"
Ports [1]
Position [400, 125, 430, 155]
Floating off
Location [512, 53, 806, 280]
Open on
NumInputPorts "1"
TickLabels "on"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "0"
YMax "1.75"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Array"
LimitDataPoints on
MaxDataPoints "10000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [80, 71, 100, 104]
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [195, 66, 215, 99]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType ToFile
Name "To File"
Position [380, 15, 440, 45]
Filename "c:\\data.mat"
MatrixName "out"
Decimation "1"
SampleTime "-1"
}
Line {
SrcBlock "Gp(s)"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -55]
DstBlock "To File"
DstPort 1
}
Branch {
DstBlock "Disp"
DstPort 1
}
Branch {
Points [0, 55]
Branch {
DstBlock "SC"
DstPort 1
}
Branch {
Points [-275, 0]
DstBlock "Sum"
DstPort 2
}
}
}
Line {
SrcBlock "F(s)"
SrcPort 1
Points [-70, 0; 0, 45]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Gp(s)"
DstPort 1
}
Line {
SrcBlock "PID"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "PID"
DstPort 1
}
Line {
SrcBlock "R(s)"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -