📄 wang_p254.mdl
字号:
Model {
Name "Wang_p254"
Version 4.00
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines on
ShowLineDimensions on
ShowPortDataTypes off
ShowStorageClass off
ExecutionOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip on
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Fri Oct 29 05:15:36 1999"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Sat Aug 11 21:37:07 2001"
ModelVersionFormat "1.%<AutoIncrement:149>"
ConfigurationManager "none"
SimParamPage "Solver"
StartTime "0.0"
StopTime "10"
SolverMode "SingleTasking"
Solver "ode4"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "0.03"
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"
InvalidFcnCallConnMsg "error"
SignalLabelMismatchMsg "none"
LinearizationMsg "none"
VectorMatrixConversionMsg "none"
SfunCompatibilityCheckMsg "none"
BlockPriorityViolationMsg "warning"
ArrayBoundsChecking "none"
ConsistencyChecking "none"
ZeroCross on
Profile off
SimulationMode "normal"
RTWSystemTargetFile "grt.tlc"
RTWOptions "-aExtMode=0 -aForceParamTrailComments=0 -aInlineInv"
"ariantSignals=0 -aLocalBlockOutputs=1 -aLogVarNameModifier=\"rt_\" -aRTWVerbo"
"se=1 -aRollThreshold=5 -aShowEliminatedStatements=1"
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"
TryForcingSFcnDF 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
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt off
RTWExpressionDepthLimit 5
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 "Wang_p254"
Location [295, 74, 795, 347]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Clock
Name "Clock"
Position [20, 25, 40, 45]
DisplayTime off
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [25, 90, 55, 120]
Value "x10"
VectorParams1D on
}
Block {
BlockType Constant
Name "Constant1"
Position [25, 125, 55, 155]
Value "x20"
VectorParams1D on
}
Block {
BlockType SubSystem
Name "Digital Fuzzy\n Subsystem"
Ports [1, 1]
Position [110, 72, 150, 98]
BackgroundColor "cyan"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Digital Fuzzy\n Subsystem"
Location [40, 283, 416, 497]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "ek"
Position [20, 58, 50, 72]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Abs
Name "Abs"
Position [60, 15, 90, 45]
SaturateOnIntegerOverflow on
}
Block {
BlockType Abs
Name "Abs1"
Position [70, 160, 100, 190]
SaturateOnIntegerOverflow on
}
Block {
BlockType Abs
Name "Abs2"
Position [185, 160, 215, 190]
SaturateOnIntegerOverflow on
}
Block {
BlockType Reference
Name "Fuzzy Logic \nController\n[inv_pen.fis]"
Ports [1, 1]
Position [270, 24, 320, 56]
FontName "Arial"
SourceBlock "fuzblock/Fuzzy Logic \nController"
SourceType "FIS"
fis "inv_pen"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [245, 21, 250, 59]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [115, 18, 140, 42]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [145, 63, 170, 87]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [205, 118, 230, 142]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Name "Sde"
Position [10, 163, 50, 187]
Value "25"
VectorParams1D on
}
Block {
BlockType Constant
Name "Se"
Position [20, 18, 40, 42]
Value "8"
VectorParams1D on
}
Block {
BlockType Constant
Name "Su"
Position [145, 163, 165, 187]
Value "20"
VectorParams1D on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [80, 55, 100, 75]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [50, 100, 85, 140]
X0 "0"
SampleTime "0.03"
RTWStateStorageClass "Auto"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [260, 111, 295, 149]
SampleTime "0.03"
}
Block {
BlockType Outport
Name "uk"
Position [320, 123, 350, 137]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "ek"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [0, 25; -25, 0]
DstBlock "Unit Delay"
DstPort 1
}
Branch {
Points [0, -15; 40, 0]
DstBlock "Product"
DstPort 2
}
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [25, 0]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [55, 0]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fuzzy Logic \nController\n[inv_pen.fis]"
DstPort 1
}
Line {
SrcBlock "Fuzzy Logic \nController\n[inv_pen.fis]"
SrcPort 1
Points [10, 0; 0, 65; -145, 0]
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "uk"
DstPort 1
}
Line {
SrcBlock "Abs"
SrcPort 1
Points [5, 0]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Se"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
Line {
SrcBlock "Sde"
SrcPort 1
DstBlock "Abs1"
DstPort 1
}
Line {
SrcBlock "Abs1"
SrcPort 1
Points [25, 0]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Su"
SrcPort 1
DstBlock "Abs2"
DstPort 1
}
Line {
SrcBlock "Abs2"
SrcPort 1
Points [0, -25; -30, 0]
DstBlock "Product2"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Double click\non this for demo.5"
Ports []
Position [20, 229, 191, 260]
BackgroundColor "green"
ShowName off
OpenFcn "wang254_init"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('Load initial data before simulation\\nDou"
"ble clicks on this ICON')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Double click\non this for demo.5"
Location [42, 353, 169, 506]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType Gain
Name "Gain"
Position [325, 69, 380, 101]
Gain "180/pi"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain1"
Position [280, 149, 335, 181]
Gain "180/pi"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [75, 169, 100, 201]
Gain "1"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "Inverted Pendulum\nSubsystem"
Ports [3, 2]
Position [230, 72, 280, 128]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Inverted Pendulum\nSubsystem"
Location [284, 236, 787, 439]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "u"
Position [15, 28, 45, 42]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "x10"
Position [15, 83, 45, 97]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -