Model { Name "pendulum" 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 "USER" ModifiedDateFormat "%" LastModifiedDate "Wed Dec 12 09:07:41 2007" 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 "15.0" 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 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 Step Time "1" Before "0" After "1" SampleTime "-1" VectorParams1D on ZeroCross on } 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 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" Location [25, 97, 773, 564] 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" Position [140, 145, 200, 175] MATLABFcn "x2dot" } Block { BlockType MATLABFcn Name "Fungsi X4DOT" Position [130, 335, 190, 365] MATLABFcn "x4dot" } Block { BlockType Gain Name "Gain" Position [170, 435, 200, 465] Orientation "left" Gain "-1" } 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] InitialCondition "30*(pi/180)" } 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 [105, 475, 165, 505] 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 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 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 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, 440, 300, 470] 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 { DstBlock "Posisi Kereta" DstPort 1 } Branch { Points [0, 45; -175, 0; 0, 35] DstBlock "Mux" DstPort 1 } } Line { SrcBlock "Batas Kecepatan" SrcPort 1 Points [45, 0] Branch { DstBlock "Kecepatan Kereta" DstPort 1 } Branch { Points [0, -35; -235, 0; 0, -55] DstBlock "Integrator" DstPort 1 } } Line { SrcBlock "Batas Sudut" SrcPort 1 Points [20, 0] Branch { DstBlock "rad to degree1" DstPort 1 } Branch { Points [0, 55; -140, 0] Branch { Labels [1, 0] Points [0, 40] DstBlock "Mux1" DstPort 1 } Branch { Points [-245, 0; 0, 50] DstBlock "Mux3" DstPort 1 } } Branch { Labels [1, 0] Points [0, -30; -385, 0; 0, -35] DstBlock "Mux2" DstPort 2 } } 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 } } } 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" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Fungsi X4DOT" 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" DstPort 1 } Line { SrcBlock "Mux3" SrcPort 1 DstBlock "Fungsi X4DOT" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [0, -5] DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [-110, 0] Branch { Points [0, -90] DstBlock "Mux3" DstPort 3 } Branch { Points [0, 40] DstBlock "Isyarat Masukan u" DstPort 1 } } Line { SrcBlock "Step" SrcPort 1 Points [-30, 0; 0, 29] 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 } 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] } } }