Model { Name "motor_jangkar" 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 "Thu Mar 17 16:15:52 2005" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "WinXp" ModifiedDateFormat "%" LastModifiedDate "Fri Apr 01 10:20:30 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 "ode4" SolverMode "Auto" StartTime "0.0" StopTime "9.99" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "0.001" 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 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 "motor_jangkar" Location [2, 84, 798, 550] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType TransferFcn Name "1/J" Position [635, 82, 695, 118] Denominator "[0.211]" } Block { BlockType TransferFcn Name "1/La" Position [335, 82, 395, 118] Denominator "[0.005]" } Block { BlockType TransferFcn Name "1/Ts" Position [130, 237, 190, 273] Denominator "[4 0]" } Block { BlockType ToWorkspace Name "Arus Jangkar" Position [525, 15, 585, 45] VariableName "arus" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Gain Name "B" Position [625, 196, 680, 234] Orientation "left" Gain "0.654" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [425, 85, 455, 115] } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [735, 85, 765, 115] } Block { BlockType Integrator Name "Integrator2" Ports [1, 1] Position [115, 15, 145, 45] } Block { BlockType Gain Name "Kb" Position [495, 316, 550, 354] Orientation "left" Gain "1.84" } Block { BlockType ToWorkspace Name "Kec. Motor RPM" Position [945, 85, 1005, 115] VariableName "rpm" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "Kec. Motor rad/sec" Position [835, 15, 895, 45] VariableName "omega" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Gain Name "Km" Position [495, 83, 540, 117] Gain "1.73" } Block { BlockType Reference Name "Manual Switch" Ports [2, 1] Position [105, 82, 135, 118] ShowName off SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Reference Name "Manual Switch1" Ports [2, 1] Position [282, 150, 313, 190] Orientation "up" NamePlacement "alternate" ShowName off SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Reference Name "Manual Switch2" Ports [2, 1] Position [557, 155, 588, 195] Orientation "up" NamePlacement "alternate" ShowName off SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "0" action "0" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [420, 281, 425, 319] Orientation "left" ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [680, 276, 685, 314] Orientation "left" ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType ToWorkspace Name "Pencatat Waktu" Position [230, 15, 290, 45] VariableName "time" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType MATLABFcn Name "Perubahan Beban" Position [585, 280, 645, 310] Orientation "left" MATLABFcn "variasi_beban" } Block { BlockType MATLABFcn Name "Perubahan Ra" Position [325, 285, 385, 315] Orientation "left" MATLABFcn "variasi_r" } Block { BlockType Gain Name "Ra" Position [355, 188, 400, 222] Orientation "left" Gain "0.19" } Block { BlockType Step Name "Step" Position [25, 15, 55, 45] Time "0" SampleTime "0" } Block { BlockType Step Name "Step Eanom" Position [25, 75, 55, 105] Time "0.01" After "500" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [235, 90, 255, 110] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [290, 90, 310, 110] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [565, 90, 585, 110] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum3" Ports [2, 1] Position [85, 245, 105, 265] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType ToWorkspace Name "Tegangan Jangkar" Position [165, 165, 225, 195] VariableName "tegangan" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType TransferFcn Name "rad/sec to RPM" Position [840, 82, 900, 118] Numerator "[60]" Denominator "[2*pi]" } Block { BlockType Step Name "u (t-T)" Position [25, 305, 55, 335] Time "4" After "500" SampleTime "0" } Block { BlockType Step Name "u(t)" Position [25, 240, 55, 270] Time "0" After "500" SampleTime "0" } Line { SrcBlock "Step" SrcPort 1 DstBlock "Integrator2" DstPort 1 } Line { SrcBlock "Integrator2" SrcPort 1 Points [15, 0] Branch { DstBlock "Pencatat Waktu" DstPort 1 } Branch { Points [0, 35; 100, 0; 0, 190; 185, 0] Branch { Points [0, 35] DstBlock "Mux" DstPort 1 } Branch { Labels [1, 0] Points [275, 0; 0, 30] DstBlock "Mux1" DstPort 1 } } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "1/La" DstPort 1 } Line { SrcBlock "1/La" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [10, 0] Branch { DstBlock "Km" DstPort 1 } Branch { Points [0, -70] DstBlock "Arus Jangkar" DstPort 1 } Branch { Points [0, 70] Branch { Points [0, 35] DstBlock "Ra" DstPort 1 } Branch { Points [0, 140] DstBlock "Mux" DstPort 2 } } } Line { SrcBlock "Km" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "1/J" DstPort 1 } Line { SrcBlock "1/J" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [25, 0] Branch { DstBlock "rad/sec to RPM" DstPort 1 } Branch { Points [0, 115] Branch { DstBlock "B" DstPort 1 } Branch { Points [0, 85] Branch { Points [0, 35] DstBlock "Kb" DstPort 1 } Branch { Points [0, 5] DstBlock "Mux1" DstPort 2 } } } Branch { Points [0, -70] DstBlock "Kec. Motor rad/sec" DstPort 1 } } Line { SrcBlock "Kb" SrcPort 1 Points [-245, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "rad/sec to RPM" SrcPort 1 DstBlock "Kec. Motor RPM" DstPort 1 } Line { SrcBlock "Step Eanom" SrcPort 1 DstBlock "Manual Switch" DstPort 1 } Line { SrcBlock "Manual Switch" SrcPort 1 Points [10, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { DstBlock "Tegangan Jangkar" DstPort 1 } } Line { SrcBlock "u(t)" SrcPort 1 DstBlock "Sum3" DstPort 1 } Line { SrcBlock "u (t-T)" SrcPort 1 Points [35, 0] DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Sum3" SrcPort 1 DstBlock "1/Ts" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Perubahan Ra" DstPort 1 } Line { SrcBlock "Manual Switch1" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Perubahan Ra" SrcPort 1 Points [-30, 0] DstBlock "Manual Switch1" DstPort 1 } Line { SrcBlock "Ra" SrcPort 1 DstBlock "Manual Switch1" DstPort 2 } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "Perubahan Beban" DstPort 1 } Line { SrcBlock "Manual Switch2" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { Labels [0, 0] SrcBlock "Perubahan Beban" SrcPort 1 Points [-15, 0] DstBlock "Manual Switch2" DstPort 1 } Line { SrcBlock "B" SrcPort 1 Points [-40, 0] DstBlock "Manual Switch2" DstPort 2 } Line { SrcBlock "1/Ts" SrcPort 1 Points [15, 0; 0, -40; -120, 0] DstBlock "Manual Switch" DstPort 2 } } }