Model { Name "two_mass" Version 3.00 SimParamPage "Solver" SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off ShowPortDataTypes off StartTime "0.0" StopTime "4" SolverMode "Auto" Solver "ode45" RelTol "1e-3" AbsTol "auto" Refine "1" MaxStep "auto" 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 "Matrix" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" IntegerOverflowMsg "warning" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" ConsistencyChecking "off" ZeroCross on SimulationMode "normal" BlockDataTips on BlockParametersDataTip on BlockAttributesDataTip off BlockPortWidthsDataTip off BlockDescriptionStringDataTip off BlockMaskParametersDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off OptimizeBlockIOStorage on BufferReuse on BooleanDataType off RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly 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 Created "Tue Feb 04 17:28:26 2003" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "callafon" ModifiedDateFormat "%" LastModifiedDate "Tue Feb 04 18:29:58 2003" ModelVersionFormat "1.%" ConfigurationManager "none" 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 "two_mass" Location [322, 81, 822, 384] 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 Demux Name "Demux" Ports [1, 2, 0, 0, 0] Position [275, 91, 280, 129] BackgroundColor "black" ShowName off Outputs "2" } Block { BlockType Gain Name "Gain" Position [100, 190, 130, 220] Orientation "down" NamePlacement "alternate" Gain "Khw" SaturateOnIntegerOverflow on } Block { BlockType Mux Name "Mux" Ports [2, 1, 0, 0, 0] Position [370, 91, 375, 129] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Reference Name "PID Controller\n(with Approximate\nDerivative)" Ports [1, 1, 0, 0, 0] Position [200, 155, 230, 185] Orientation "left" SourceBlock "simulink_extras/Additional\nLinear/PID Controll" "er\n(with Approximate\nDerivative)" SourceType "PID(2) Controller" P "0.03" I "0.3" D "0.03/8" N "100" } Block { BlockType Reference Name "PID Controller\n(with Approximate\nDerivative)1" Ports [1, 1, 0, 0, 0] Position [200, 15, 230, 45] Orientation "left" SourceBlock "simulink_extras/Additional\nLinear/PID Controll" "er\n(with Approximate\nDerivative)" SourceType "PID(2) Controller" P "0.01/2" I "0" D "0.01/2" N "100" } Block { BlockType Saturate Name "Saturation" Position [140, 95, 170, 125] UpperLimit "5/Khw" LowerLimit "-5/Khw" } Block { BlockType StateSpace Name "State-Space" Position [185, 93, 245, 127] A "ag" B "bg" C "cg" D "dg" X0 "0" } Block { BlockType Step Name "Step\nReference" Position [285, 220, 315, 250] Orientation "up" Time "1" Before "0" After "4000" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1, 0, 0, 0] Position [290, 160, 310, 180] Orientation "left" NamePlacement "alternate" ShowName off IconShape "round" Inputs "-+" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum1" Ports [2, 1, 0, 0, 0] Position [80, 100, 100, 120] ShowName off IconShape "round" Inputs "-+" SaturateOnIntegerOverflow on } Block { BlockType Scope Name "control\nsignal" Description "control signal" Ports [1, 0, 0, 0, 0] Position [100, 255, 130, 285] Orientation "down" NamePlacement "alternate" Floating off Location [543, 428, 867, 667] Open on NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "xonly" List { ListType AxesTitles axes1 "control signal u" } Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Scope Name "output\npositions" Ports [1, 0, 0, 0, 0] Position [425, 94, 455, 126] Floating off Location [209, 427, 533, 666] Open on NumInputPorts "1" TickLabels "OneTimeTick" ZoomMode "yonly" List { ListType AxesTitles axes1 "position x1 (yellow) and x2 (purple)" } Grid "on" TimeRange "auto" YMin "0" YMax "5000" SaveToWorkspace off SaveName "ScopeData" DataFormat "StructureWithTime" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Line { SrcBlock "State-Space" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "PID Controller\n(with Approximate\nDerivative)" DstPort 1 } Line { SrcBlock "Step\nReference" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "PID Controller\n(with Approximate\nDerivative)" SrcPort 1 Points [-105, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "PID Controller\n(with Approximate\nDerivative)1" SrcPort 1 Points [-105, 0] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "output\npositions" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "control\nsignal" DstPort 1 } Line { SrcBlock "Saturation" SrcPort 1 DstBlock "State-Space" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 Points [10, 0] Branch { DstBlock "Saturation" DstPort 1 } Branch { DstBlock "Gain" DstPort 1 } } Line { SrcBlock "Demux" SrcPort 2 Points [40, 0] Branch { DstBlock "Mux" DstPort 2 } Branch { Points [0, -90] DstBlock "PID Controller\n(with Approximate\nDerivative" ")1" DstPort 1 } } Line { SrcBlock "Demux" SrcPort 1 Points [15, 0] Branch { DstBlock "Mux" DstPort 1 } Branch { DstBlock "Sum" DstPort 1 } } } }