?? order1.mdl
字號:
Model {
Name "order1"
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 "Sun Dec 09 09:35:44 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Tue Apr 16 08:38:25 2002"
ModelVersionFormat "1.%<AutoIncrement:33>"
ConfigurationManager "none"
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 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 "order1"
Location [23, 390, 415, 569]
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 [310, 71, 380, 99]
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType Step
Name "F(s)"
Position [215, 16, 245, 44]
Orientation "left"
Time "0"
Before "0"
After "0"
SampleTime "0"
VectorParams1D on
}
Block {
BlockType SubSystem
Name "Gp(s)"
Ports [1, 1]
Position [235, 59, 270, 111]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "K|T|Tor"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVariables "K=@1;T=@2;tor=@3;"
MaskDisplay "disp('Gp(s)');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1|10|3"
MaskVariableAliases ",,"
System {
Name "Gp(s)"
Location [254, 186, 519, 274]
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 [25, 38, 55, 52]
Port "1"
Interpolate on
}
Block {
BlockType TransportDelay
Name "DT"
Position [155, 30, 185, 60]
DelayTime "3"
InitialInput "0"
BufferSize "1024"
PadeOrder "0"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn1"
Position [80, 27, 135, 63]
NamePlacement "alternate"
Numerator "1"
Denominator "[10 1]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType Outport
Name "Out1"
Position [210, 38, 240, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Transfer Fcn1"
DstPort 1
}
Line {
SrcBlock "DT"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn1"
SrcPort 1
DstBlock "DT"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "PID"
Ports [1, 1]
Position [125, 75, 155, 105]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "PID Controller"
MaskDescription "Enter expressions for proportional, integral, a"
"nd derivative terms.\nP+I/s+Ds"
MaskHelp "This block implements a PID controller where pa"
"rameters are entered for the Proportional, Integral and Derivative terms. Unm"
"ask this block to see how it works. The derivative term is implemented using "
"a true derivative block."
MaskPromptString "proportional|Integral|D"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVariables "P=@1;I=@2;D=@3;"
MaskDisplay "disp('PID')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "3.9216|0.65359|0"
MaskVariableAliases ",,"
System {
Name "PID"
Location [303, 337, 665, 557]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In_1"
Position [25, 65, 45, 85]
Port "1"
Interpolate on
}
Block {
BlockType TransferFcn
Name "D"
Position [120, 122, 175, 158]
Numerator "[D*P 0]"
Denominator "[D/10 1]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType TransferFcn
Name "Integral"
Position [110, 57, 145, 93]
Numerator ".00001"
Denominator "[1 0]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType Gain
Name "Proportional"
Position [120, 13, 140, 37]
Gain "4"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [245, 57, 265, 93]
IconShape "rectangular"
Inputs "+++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Out_1"
Position [290, 65, 310, 85]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Out_1"
DstPort 1
}
Line {
SrcBlock "In_1"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 0]
Branch {
Points [0, -50]
DstBlock "Proportional"
DstPort 1
}
Branch {
DstBlock "Integral"
DstPort 1
}
}
Branch {
Points [0, 65]
DstBlock "D"
DstPort 1
}
}
Line {
SrcBlock "D"
SrcPort 1
Points [30, 0; 0, -55]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Integral"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Proportional"
SrcPort 1
Points [65, 0; 0, 40]
DstBlock "Sum"
DstPort 1
}
}
}
Block {
BlockType Step
Name "R(s)"
Position [25, 68, 55, 92]
Time "0"
Before "0"
After "1"
SampleTime "0"
VectorParams1D on
}
Block {
BlockType Scope
Name "SC"
Ports [1]
Position [350, 125, 380, 155]
Floating off
Location [428, 370, 709, 590]
Open on
NumInputPorts "1"
TickLabels "on"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "50"
YMin "0"
YMax "1.3"
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 [190, 66, 210, 99]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType ToFile
Name "To File"
Position [320, 15, 380, 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; 0, -45]
DstBlock "Sum"
DstPort 2
}
}
}
Line {
SrcBlock "F(s)"
SrcPort 1
Points [-45, 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 + -