Model { Name "pendulum_linier" Version 5.0 SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ExecutionOrder off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Fri Mar 18 16:52:27 2005" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "WinXp" ModifiedDateFormat "%" LastModifiedDate "Mon Apr 04 11:49:00 2005" ModelVersionFormat "1.%" ConfigurationManager "None" SimParamPage "Solver" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off 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 ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse on RTWExpressionDepthLimit 5 SimulationMode "normal" Solver "ode45" SolverMode "Auto" StartTime "0.0" StopTime "25" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" RelTol "1e-6" AbsTol "auto" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" LoadExternalInput off ExternalInput "[t, u]" LoadInitialState off InitialState "xInitial" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" Decimation "1" LimitDataPoints on MaxDataPoints "1000" SignalLoggingName "sigsOut" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" CheckForMatrixSingularity "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SfunCompatibilityCheckMsg "none" RTWInlineParameters off BlockReductionOpt on BooleanDataType on ConditionallyExecuteInputs on ParameterPooling on OptimizeBlockIOStorage on ZeroCross on AssertionControl "UseLocalSettings" ProdHWDeviceType "Microprocessor" ProdHWWordLengths "8,16,32,32" RTWSystemTargetFile "grt.tlc" RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off RTWRetainRTWFile off TLCProfiler off TLCDebug off TLCCoverage off TLCAssertion off BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ShowAdditionalParam off ParameterDataTypeMode "Same as input" ParameterDataType "sfix(16)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "2^0" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Ground } Block { BlockType Inport Port "1" PortDimensions "-1" SampleTime "-1" ShowAdditionalParam off LatchInput off DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" Interpolate on } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" ZeroCross on } Block { BlockType MATLABFcn MATLABFcn "sin" OutputDimensions "-1" OutputSignalType "auto" Output1D on } Block { BlockType Mux Inputs "4" DisplayOption "none" } Block { BlockType Outport Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType "S-Function" FunctionName "system" PortCounts "[]" SFunctionModules "''" } Block { BlockType Step Time "1" Before "0" After "1" SampleTime "-1" VectorParams1D on ZeroCross on } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Switch Criteria "u2 >= Threshold" Threshold "0" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on } Block { BlockType ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" } Block { BlockType TransferFcn Numerator "[1]" Denominator "[1 2 1]" AbsoluteTolerance "auto" Realization "auto" } } 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 "pendulum_linier" Location [0, 52, 796, 589] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType MATLABFcn Name "Batas Kec. Sudut" Position [350, 325, 410, 355] MATLABFcn "batas_tetadot" } Block { BlockType MATLABFcn Name "Batas Kecepatan" Position [355, 135, 415, 165] MATLABFcn "batas_xdot" } Block { BlockType MATLABFcn Name "Batas Posisi" Position [355, 45, 415, 75] MATLABFcn "batas_x" } Block { BlockType MATLABFcn Name "Batas Sudut" Position [355, 220, 415, 250] MATLABFcn "batas_teta" } Block { BlockType MATLABFcn Name "Fungsi X2DOT-LIN" Position [140, 145, 200, 175] MATLABFcn "x2dot_lin" } Block { BlockType MATLABFcn Name "Fungsi X4DOT-LIN" Position [130, 335, 190, 365] MATLABFcn "x4dot_lin" } Block { BlockType Gain Name "Gain" Position [170, 435, 200, 465] Orientation "left" Gain "-1" } Block { BlockType Ground Name "Ground" Position [175, 540, 195, 560] } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [270, 45, 300, 75] } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [260, 145, 290, 175] } Block { BlockType Integrator Name "Integrator2" Ports [1, 1] Position [260, 220, 290, 250] } Block { BlockType Integrator Name "Integrator3" Ports [1, 1] Position [255, 335, 285, 365] } Block { BlockType Integrator Name "Integrator4" Ports [1, 1] Position [75, 15, 105, 45] } Block { BlockType ToWorkspace Name "Isyarat Masukan u" Position [135, 480, 195, 510] VariableName "u" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "Kecepatan Kereta" Position [535, 135, 595, 165] VariableName "kecepatan" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "Kecepatan Sudut" Position [535, 325, 595, 355] VariableName "omega" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Reference Name "Manual Switch" Ports [2, 1] Position [230, 542, 260, 578] SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "0" action "0" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [325, 131, 330, 169] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [320, 321, 325, 359] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux2" Ports [2, 1] Position [100, 141, 105, 179] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux3" Ports [3, 1] Position [90, 331, 95, 369] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Mux Name "Mux4" Ports [4, 1] Position [435, 591, 440, 629] Orientation "left" ShowName off DisplayOption "bar" } Block { BlockType ToWorkspace Name "Pencatat Waktu" Position [140, 15, 200, 45] VariableName "time" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "Posisi Kereta" Position [535, 45, 595, 75] VariableName "posisi" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "Posisi Sudut" Position [535, 220, 595, 250] VariableName "teta" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType MATLABFcn Name "State Variable Feedback" Position [310, 595, 370, 625] Orientation "left" MATLABFcn "state_control" } Block { BlockType Step Name "Step" Position [400, 390, 430, 420] Orientation "left" Time "0.1" SampleTime "0" } Block { BlockType Step Name "Step1" Position [400, 445, 430, 475] Orientation "left" Time "2" After "-3" SampleTime "0" } Block { BlockType Step Name "Step2" Position [20, 15, 50, 45] Time "0" SampleTime "0" } Block { BlockType Step Name "Step3" Position [400, 490, 430, 520] Orientation "left" Time "8" After "10" SampleTime "0" } Block { BlockType Step Name "Step4" Position [340, 515, 370, 545] Orientation "left" Time "10" After "-8" SampleTime "0" ZeroCross off } Block { BlockType Sum Name "Sum" Ports [4, 1] Position [270, 435, 300, 465] Orientation "left" ShowName off IconShape "round" Inputs "|++++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [50, 435, 80, 465] Orientation "left" ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType TransferFcn Name "rad to degree1" Position [465, 217, 495, 253] Numerator "[180]" Denominator "[pi]" } Line { SrcBlock "Batas Posisi" SrcPort 1 Points [55, 0] Branch { Points [0, 45; -175, 0; 0, 35] DstBlock "Mux" DstPort 1 } Branch { Points [40, 0] Branch { DstBlock "Posisi Kereta" DstPort 1 } Branch { Points [0, 535] DstBlock "Mux4" DstPort 1 } } } Line { SrcBlock "Batas Kecepatan" SrcPort 1 Points [45, 0] Branch { Points [0, -35; -235, 0; 0, -55] DstBlock "Integrator" DstPort 1 } Branch { Points [35, 0] Branch { DstBlock "Kecepatan Kereta" DstPort 1 } Branch { Points [0, 455] DstBlock "Mux4" DstPort 2 } } } Line { SrcBlock "Batas Sudut" SrcPort 1 Points [20, 0] Branch { DstBlock "rad to degree1" DstPort 1 } Branch { Labels [1, 0] Points [0, -30; -385, 0; 0, -35] DstBlock "Mux2" DstPort 2 } Branch { Points [0, 55] Branch { Points [-140, 0] Branch { Labels [1, 0] Points [0, 40] DstBlock "Mux1" DstPort 1 } Branch { Points [-245, 0; 0, 50] DstBlock "Mux3" DstPort 1 } } Branch { Points [45, 0; 0, 325] DstBlock "Mux4" DstPort 3 } } } Line { SrcBlock "Batas Kec. Sudut" SrcPort 1 Points [55, 0] Branch { DstBlock "Kecepatan Sudut" DstPort 1 } Branch { Points [0, -35; -240, 0] Branch { Points [0, -70] DstBlock "Integrator2" DstPort 1 } Branch { Labels [1, 0] Points [-190, 0; 0, 45] DstBlock "Mux3" DstPort 2 } } Branch { Points [0, 285] DstBlock "Mux4" DstPort 4 } } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "Batas Posisi" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Batas Kecepatan" DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "Batas Kec. Sudut" DstPort 1 } Line { SrcBlock "rad to degree1" SrcPort 1 DstBlock "Posisi Sudut" DstPort 1 } Line { SrcBlock "Integrator2" SrcPort 1 DstBlock "Batas Sudut" DstPort 1 } Line { SrcBlock "Integrator3" SrcPort 1 DstBlock "Mux1" DstPort 2 } Line { SrcBlock "Integrator1" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Fungsi X2DOT-LIN" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Fungsi X4DOT-LIN" SrcPort 1 Points [20, 0] Branch { DstBlock "Integrator3" DstPort 1 } Branch { Points [0, -85; -195, 0; 0, -115] DstBlock "Mux2" DstPort 1 } } Line { SrcBlock "Mux2" SrcPort 1 DstBlock "Fungsi X2DOT-LIN" DstPort 1 } Line { SrcBlock "Mux3" SrcPort 1 DstBlock "Fungsi X4DOT-LIN" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Step" SrcPort 1 Points [-30, 0; 0, 24] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Step1" SrcPort 1 Points [-80, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Step2" SrcPort 1 DstBlock "Integrator4" DstPort 1 } Line { SrcBlock "Integrator4" SrcPort 1 DstBlock "Pencatat Waktu" DstPort 1 } Line { SrcBlock "Step3" SrcPort 1 Points [-89, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Step4" SrcPort 1 Points [-50, 0] DstBlock "Sum" DstPort 4 } Line { SrcBlock "Mux4" SrcPort 1 DstBlock "State Variable Feedback" DstPort 1 } Line { SrcBlock "Ground" SrcPort 1 DstBlock "Manual Switch" DstPort 1 } Line { SrcBlock "State Variable Feedback" SrcPort 1 Points [-100, 0; 0, -40] DstBlock "Manual Switch" DstPort 2 } Line { SrcBlock "Gain" SrcPort 1 Points [-55, 0] Branch { Points [0, 45] DstBlock "Isyarat Masukan u" DstPort 1 } Branch { DstBlock "Sum1" DstPort 1 } } Line { SrcBlock "Sum1" SrcPort 1 Points [-10, 0; 0, -90] DstBlock "Mux3" DstPort 3 } Line { SrcBlock "Manual Switch" SrcPort 1 Points [0, -30; -200, 0] DstBlock "Sum1" DstPort 2 } Annotation { Name "x1" Position [439, 53] } Annotation { Name "x2" Position [440, 143] } Annotation { Name "x3" Position [434, 242] } Annotation { Name "x4" Position [435, 328] } Annotation { Name "x1dot" Position [239, 50] } Annotation { Name "x2dot" Position [231, 152] } Annotation { Name "x3dot" Position [232, 224] } Annotation { Name "x4dot" Position [226, 338] } Annotation { Name "masukan u" Position [79, 438] } } }