📄 demo2.mdl
字号:
Model { Name "demo2" Version 4.00 SampleTimeColors off LibraryLinkDisplay "all" WideLines on ShowLineDimensions on 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 "Tue Jan 8 12:29:23 2002" Creator "pic" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%<Auto>" LastModifiedBy "pic" ModifiedDateFormat "%<Auto>" LastModifiedDate "Mon Apr 8 11:38:02 2002" ModelVersionFormat "1.%<AutoIncrement:19>" 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 "demo2" Location [305, 502, 999, 752] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "portrait" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on ReportName "simulink-default.rpt" Block { BlockType Gain Name "B" Position [275, 135, 305, 165] ForegroundColor "blue" Gain "20" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Clock Name "Clock" Position [360, 166, 430, 194] DisplayTime on Decimation "10" } Block { BlockType Constant Name "Constant" Position [25, 105, 55, 135] Value "0" VectorParams1D on } Block { BlockType Derivative Name "Derivative" Position [225, 135, 255, 165] ForegroundColor "blue" } Block { BlockType Gain Name "K" Position [235, 80, 265, 110] ForegroundColor "blue" Gain "100" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Reference Name "Model Info" Ports [] Position [9, 199, 176, 244] ShowName off FontName "Arial" SourceBlock "simulink3/Signals\n& Systems/Model Info" SourceType "CMBlock" InitialBlockCM "none" BlockCM "none" Frame "on" DisplayStringWithTags "2-link demo\n%<Creator>\n%<ModifiedDate>" MaskDisplayString "2-link demo\\npic\\nMon Apr 8 11:37:04 2002" HorizontalTextAlignment "Left" LeftAlignmentValue "0.02" SourceBlockDiagram "demo2" TagMaxNumber "20" } Block { BlockType Mux Name "Mux" Ports [3, 1] Position [570, 168, 575, 232] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [130, 45, 135, 145] ShowName off Inputs "2" DisplayOption "bar" Port { PortNumber 1 Name "motor\nposition" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType RateLimiter Name "Rate Limiter" Position [80, 54, 110, 86] RisingSlewLimit "50" FallingSlewLimit "-50" } Block { BlockType Reference Name "Robot" Ports [1, 3] Position [355, 59, 470, 131] BackgroundColor "red" DropShadow on SourceBlock "roblocks/Robot" SourceType "" robot "p560" q0 "[0 0 0 0 0 0]" } Block { BlockType Scope Name "Scope" Ports [1] Position [625, 119, 655, 151] Floating off Location [188, 365, 512, 604] Open off NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "on" List { ListType AxesTitles axes1 "%<SignalLabel>" } Grid "on" TimeRange "auto" YMin "-0.5" YMax "1.5" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Step Name "Step" Position [25, 55, 55, 85] Time "1" Before "0" After "1" SampleTime "0" VectorParams1D on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [175, 85, 195, 105] ShowName off IconShape "round" Inputs "-+|" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [320, 85, 340, 105] ForegroundColor "blue" ShowName off IconShape "round" Inputs "|++" SaturateOnIntegerOverflow on } Block { BlockType Terminator Name "Terminator" Position [490, 110, 510, 130] ShowName off } Block { BlockType ToWorkspace Name "To Workspace" Position [600, 185, 660, 215] VariableName "simout" MaxDataPoints "inf" Decimation "1" SampleTime "-1" SaveFormat "Array" } Block { BlockType Reference Name "plot" Ports [1] Position [575, 42, 655, 98] BackgroundColor "red" SourceBlock "roblocks/plot" SourceType "" robot "p560" } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Mux1" DstPort 2 } Line { SrcBlock "Step" SrcPort 1 DstBlock "Rate Limiter" DstPort 1 } Line { SrcBlock "Rate Limiter" SrcPort 1 DstBlock "Mux1" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [5, 0] Branch { DstBlock "K" DstPort 1 } Branch { Points [0, 55] DstBlock "Derivative" DstPort 1 } } Line { SrcBlock "Robot" SrcPort 1 Points [55, 0] Branch { DstBlock "plot" DstPort 1 } Branch { Points [0, -25; -345, 0] DstBlock "Sum" DstPort 1 } Branch { Points [0, 65] Branch { Points [0, 65] DstBlock "Mux" DstPort 2 } Branch { DstBlock "Scope" DstPort 1 } } } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Robot" DstPort 1 } Line { SrcBlock "K" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "B" SrcPort 1 Points [20, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Derivative" SrcPort 1 DstBlock "B" DstPort 1 } Line { Name "motor\nposition" Labels [0, 0] SrcBlock "Mux1" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "To Workspace" DstPort 1 } Line { SrcBlock "Clock" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Robot" SrcPort 2 Points [45, 0; 0, 125] DstBlock "Mux" DstPort 3 } Line { SrcBlock "Robot" SrcPort 3 DstBlock "Terminator" DstPort 1 } Annotation { Position [176, 18] Text "2-link robot with flexible transmission" FontSize 18 FontWeight "bold" } Annotation { Position [228, 52] Text "load position" } Annotation { Position [251, 198] ForegroundColor "blue" Text "transmission comprises\nspring + damper" } Annotation { Position [79, 168] Text "assume the motor\nis infinitely \"stiff\"" } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -