Model { Name "phase_lock_motor_ctrl_3" 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 "Sat May 08 09:32:36 2010" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Administrator" ModifiedDateFormat "%" LastModifiedDate "Thu May 13 17:13:33 2010" 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 "100" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "0.0005" 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 Constant Value "1" VectorParams1D on ShowAdditionalParam off OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" } Block { BlockType Derivative } Block { BlockType Display Format "short" Decimation "10" Floating off SampleTime "-1" } 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 Product Inputs "2" Multiplication "Element-wise(.*)" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Saturate UpperLimit "0.5" LowerLimit "-0.5" LinearizeAsGain on ZeroCross on } Block { BlockType "S-Function" FunctionName "system" PortCounts "[]" SFunctionModules "''" } Block { BlockType StateSpace A "1" B "1" C "1" D "1" X0 "0" AbsoluteTolerance "auto" Realization "auto" } 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 "phase_lock_motor_ctrl_3" Location [120, 93, 1060, 638] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Constant Name "AC SOURCE (RMS)" Position [15, 108, 195, 142] Value "1110.70" } Block { BlockType Constant Name "Bnominal" Position [20, 349, 95, 381] Value "0.6531" } Block { BlockType Constant Name "Constant" Position [35, 20, 65, 50] } Block { BlockType SubSystem Name "Controler" Ports [1, 1] Position [435, 204, 495, 246] TreatAsAtomicUnit off System { Name "Controler" Location [433, 403, 1004, 703] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [75, 108, 105, 122] } Block { BlockType Derivative Name "Derivative" Position [250, 160, 280, 190] } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [240, 100, 270, 130] } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [460, 100, 490, 130] } Block { BlockType TransferFcn Name "Kd" Position [160, 157, 220, 193] Denominator "[5]" } Block { BlockType TransferFcn Name "Ki" Position [155, 97, 215, 133] Numerator "[0]" Denominator "[1000]" } Block { BlockType TransferFcn Name "Ki1" Position [385, 97, 440, 133] Denominator "[10]" } Block { BlockType TransferFcn Name "Kp" Position [180, 32, 240, 68] Denominator "[500]" } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [305, 105, 325, 125] ShowName off IconShape "round" Inputs "+++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [345, 105, 365, 125] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Outport Name "Out1" Position [525, 108, 555, 122] } Line { SrcBlock "Kp" SrcPort 1 Points [70, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "In1" SrcPort 1 Points [25, 0] Branch { Points [0, -65] DstBlock "Kp" DstPort 1 } Branch { DstBlock "Ki" DstPort 1 } Branch { Points [0, 60] DstBlock "Kd" DstPort 1 } } Line { SrcBlock "Ki" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Kd" SrcPort 1 DstBlock "Derivative" DstPort 1 } Line { SrcBlock "Derivative" SrcPort 1 Points [30, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Ki1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [0, 0; 10, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, 55; -150, 0] DstBlock "Sum1" DstPort 2 } } Line { SrcBlock "Ki1" SrcPort 1 DstBlock "Integrator1" DstPort 1 } } } Block { BlockType SubSystem Name "DC MOTOR" Ports [2, 1] Position [695, 106, 800, 239] TreatAsAtomicUnit off System { Name "DC MOTOR" Location [365, 192, 1230, 618] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "Ea" Position [50, 98, 80, 112] } Block { BlockType Inport Name "Load Disturbance" Position [55, 248, 85, 262] Port "2" } Block { BlockType TransferFcn Name "1/J" Position [540, 87, 600, 123] Denominator "[0.2107]" } Block { BlockType TransferFcn Name "1/La" Position [165, 87, 225, 123] Denominator "[0.005]" } Block { BlockType Constant Name "Bnominal" Position [180, 304, 255, 336] Orientation "left" Value "0.6531" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [270, 90, 300, 120] InitialCondition "99" } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [645, 90, 675, 120] InitialCondition "(2500/60)*2*pi" } Block { BlockType Gain Name "Kb" Position [365, 198, 435, 232] Orientation "left" Gain "1.838" } Block { BlockType Gain Name "Km" Position [360, 88, 430, 122] Gain "1.727" } Block { BlockType Product Name "Product" Ports [2, 1] Position [180, 26, 225, 59] Orientation "left" InputSameDT off } Block { BlockType Product Name "Product1" Ports [2, 1] Position [600, 161, 645, 194] Orientation "left" InputSameDT off } Block { BlockType Constant Name "Ra" Position [325, 20, 355, 50] Orientation "left" Value "0.19" } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [120, 95, 140, 115] ShowName off IconShape "round" Inputs "-+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [490, 95, 510, 115] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [130, 245, 150, 265] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType TransferFcn Name "rad/sec to RPM" Position [750, 87, 810, 123] Numerator "[60]" Denominator "[2*pi]" } Block { BlockType Outport Name "RPM" Position [860, 98, 890, 112] } Line { SrcBlock "Sum" SrcPort 1 DstBlock "1/La" DstPort 1 } Line { SrcBlock "1/La" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 Points [-45, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Ra" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [10, 0] Branch { Points [0, -55] DstBlock "Product" DstPort 2 } Branch { DstBlock "Km" DstPort 1 } } Line { SrcBlock "Km" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "1/J" DstPort 1 } Line { SrcBlock "1/J" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [35, 0] Branch { DstBlock "rad/sec to RPM" DstPort 1 } Branch { Points [0, 65] Branch { DstBlock "Product1" DstPort 1 } Branch { Points [0, 45] DstBlock "Kb" DstPort 1 } } } Line { SrcBlock "rad/sec to RPM" SrcPort 1 DstBlock "RPM" DstPort 1 } Line { SrcBlock "Ea" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Load Disturbance" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Bnominal" SrcPort 1 Points [-35, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 Points [535, 0; 0, -70] DstBlock "Product1" DstPort 2 } Line { SrcBlock "Product1" SrcPort 1 Points [-95, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Kb" SrcPort 1 Points [-230, 0] DstBlock "Sum" DstPort 3 } } } Block { BlockType Display Name "Ea" Ports [1] Position [700, 60, 790, 90] Decimation "1" } Block { BlockType ToWorkspace Name "Ea(t)" Position [705, 15, 765, 45] VariableName "Ea" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Display Name "Ea1" Ports [1] Position [575, 75, 665, 105] ShowName off Decimation "1" } Block { BlockType Display Name "Ea2" Ports [1] Position [230, 450, 320, 480] Orientation "left" ShowName off Decimation "1" } Block { BlockType ToWorkspace Name "Firing Angke (in degree)" Position [575, 25, 635, 55] VariableName "alpha" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "Gangguan Beban" Position [705, 260, 765, 290] VariableName "gangguan" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Ground Name "Ground" Position [540, 185, 560, 205] } Block { BlockType Ground Name "Ground1" Position [320, 250, 340, 270] } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [115, 20, 145, 50] } Block { BlockType SubSystem Name "Load Disturbance Source" Ports [0, 1] Position [15, 270, 100, 320] TreatAsAtomicUnit off System { Name "Load Disturbance Source" Location [431, 409, 933, 723] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Step Name "Step" Position [90, 50, 120, 80] Time "10" After "0.5" SampleTime "0" } Block { BlockType Step Name "Step1" Position [90, 115, 120, 145] Time "25" After "0.5" SampleTime "0" } Block { BlockType Step Name "Step2" Position [90, 180, 120, 210] Time "50" After "-0.6" SampleTime "0" } Block { BlockType Step Name "Step3" Position [90, 245, 120, 275] Time "80" After "-0.6" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [160, 90, 180, 110] ShowName off IconShape "round" Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [160, 220, 180, 240] ShowName off IconShape "round" Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [270, 145, 290, 165] ShowName off IconShape "round" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Outport Name "Out1" Position [360, 148, 390, 162] } Line { SrcBlock "Step" SrcPort 1 Points [45, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Step1" SrcPort 1 Points [45, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Step2" SrcPort 1 Points [45, 0] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Step3" SrcPort 1 Points [45, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 Points [95, 0] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 Points [95, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Reference Name "Manual Switch" Ports [2, 1] Position [665, 367, 695, 403] Orientation "left" SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Reference Name "Manual Switch1" Ports [2, 1] Position [600, 187, 630, 223] SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "0" action "0" } Block { BlockType Reference Name "Manual Switch2" Ports [2, 1] Position [390, 207, 420, 243] SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Reference Name "Manual Switch3" Ports [2, 1] Position [395, 22, 425, 58] SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "0" action "0" } Block { BlockType SubSystem Name "OPEN LOOP TEST" Ports [0, 1] Position [770, 384, 870, 426] Orientation "left" FontSize 10 TreatAsAtomicUnit off System { Name "OPEN LOOP TEST" Location [433, 403, 931, 703] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType SubSystem Name "Frequency Variations" Ports [0, 1] Position [85, 85, 170, 135] TreatAsAtomicUnit off System { Name "Frequency Variations" Location [433, 403, 931, 703] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Step Name "Step" Position [90, 50, 120, 80] Time "10" After "10" SampleTime "0" } Block { BlockType Step Name "Step1" Position [90, 115, 120, 145] Time "25" After "10" SampleTime "0" } Block { BlockType Step Name "Step2" Position [90, 180, 120, 210] Time "50" After "-10" SampleTime "0" } Block { BlockType Step Name "Step3" Position [90, 245, 120, 275] Time "80" After "-10" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [160, 90, 180, 110] ShowName off IconShape "round" Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [160, 220, 180, 240] ShowName off IconShape "round" Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [270, 145, 290, 165] ShowName off IconShape "round" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Outport Name "Out1" Position [360, 148, 390, 162] } Line { SrcBlock "Step" SrcPort 1 Points [45, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Step1" SrcPort 1 Points [45, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Step2" SrcPort 1 Points [45, 0] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Step3" SrcPort 1 Points [45, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 Points [95, 0] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 Points [95, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Ground Name "Ground" Position [150, 180, 170, 200] } Block { BlockType Reference Name "Manual Switch1" Ports [2, 1] Position [210, 102, 240, 138] SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "0" action "0" } Block { BlockType Constant Name "OPEN LOOP" Position [100, 21, 155, 49] Value "2510" } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [245, 25, 265, 45] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Outport Name "Out1" Position [355, 28, 385, 42] } Line { SrcBlock "OPEN LOOP" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "Frequency Variations" SrcPort 1 DstBlock "Manual Switch1" DstPort 1 } Line { SrcBlock "Ground" SrcPort 1 Points [10, 0; 0, -60] DstBlock "Manual Switch1" DstPort 2 } Line { SrcBlock "Manual Switch1" SrcPort 1 Points [10, 0] DstBlock "Sum2" DstPort 2 } } } Block { BlockType SubSystem Name "OPTICAL TACHOMETER" Ports [3, 2] Position [415, 377, 595, 433] Orientation "left" TreatAsAtomicUnit off System { Name "OPTICAL TACHOMETER" Location [237, 326, 923, 640] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "RPM IN" Position [15, 103, 45, 117] } Block { BlockType Inport Name "time" Position [15, 18, 45, 32] Port "2" } Block { BlockType Inport Name "REF. RPM" Position [15, 183, 45, 197] Port "3" } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [280, 130, 310, 160] } Block { BlockType Mux Name "Mux1" Ports [3, 1] Position [410, 91, 415, 129] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType MATLABFcn Name "Optical Pulse Generator" Position [455, 95, 515, 125] MATLABFcn "gel_pulsa" } Block { BlockType TransferFcn Name "Roda Gigi 1:25" Position [65, 90, 95, 130] Denominator "[25]" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [155, 135, 175, 155] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType TransferFcn Name "Transfer Fcn1" Position [200, 127, 260, 163] Numerator "[2*pi]" Denominator "[100]" } Block { BlockType Outport Name "PULSE OUT" Position [575, 103, 605, 117] } Block { BlockType Outport Name "PHASE FEEDBACK" Position [575, 138, 605, 152] Port "2" } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "Optical Pulse Generator" DstPort 1 } Line { SrcBlock "Optical Pulse Generator" SrcPort 1 DstBlock "PULSE OUT" DstPort 1 } Line { SrcBlock "RPM IN" SrcPort 1 DstBlock "Roda Gigi 1:25" DstPort 1 } Line { SrcBlock "REF. RPM" SrcPort 1 Points [115, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Transfer Fcn1" DstPort 1 } Line { SrcBlock "Transfer Fcn1" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [70, 0] Branch { Points [0, -25] DstBlock "Mux1" DstPort 3 } Branch { DstBlock "PHASE FEEDBACK" DstPort 1 } } Line { SrcBlock "time" SrcPort 1 Points [325, 0; 0, 75] DstBlock "Mux1" DstPort 1 } Line { SrcBlock "Roda Gigi 1:25" SrcPort 1 Points [0, 0] Branch { Points [20, 0; 0, 35] DstBlock "Sum1" DstPort 1 } Branch { DstBlock "Mux1" DstPort 2 } } } } Block { BlockType ToWorkspace Name "PHI (in degree)" Position [260, 405, 320, 435] Orientation "left" VariableName "phi" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType SubSystem Name "Phase Detector" Ports [3, 1] Position [215, 194, 315, 236] TreatAsAtomicUnit off System { Name "Phase Detector" Location [332, 152, 1125, 640] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "time" Position [50, 63, 80, 77] } Block { BlockType Inport Name "REFERENCE" Position [50, 13, 80, 27] Port "2" } Block { BlockType Inport Name "FEEDBACK" Position [50, 148, 80, 162] Port "3" } Block { BlockType Reference Name "Analog\nFilter Design" Ports [1, 1] Position [280, 32, 345, 88] SourceBlock "dsparch4/Analog\nFilter Design" SourceType "Analog Filter Design" method "Butterworth" filttype "Lowpass" N "8" Wlo "1" Whi "80" Rp "2" Rs "40" } Block { BlockType Reference Name "Analog\nFilter Design1" Ports [1, 1] Position [285, 127, 350, 183] SourceBlock "dsparch4/Analog\nFilter Design" SourceType "Analog Filter Design" method "Butterworth" filttype "Lowpass" N "8" Wlo "1" Whi "80" Rp "2" Rs "40" } Block { BlockType Reference Name "Analog\nFilter Design2" Ports [1, 1] Position [345, 357, 410, 413] SourceBlock "dsparch4/Analog\nFilter Design" SourceType "Analog Filter Design" method "Butterworth" filttype "Lowpass" N "8" Wlo "1" Whi "80" Rp "2" Rs "40" } Block { BlockType MATLABFcn Name "Comparator" Position [490, 95, 550, 125] MATLABFcn "komparator" } Block { BlockType Mux Name "Mux2" Ports [2, 1] Position [220, 366, 225, 404] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType SubSystem Name "PEMBAGKIT PULSA REFERENCE" Ports [2, 1] Position [135, 39, 235, 81] TreatAsAtomicUnit off System { Name "PEMBAGKIT PULSA REFERENCE" Location [421, 326, 940, 640] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "RPM IN" Position [15, 103, 45, 117] } Block { BlockType Inport Name "time" Position [15, 38, 45, 52] Port "2" } Block { BlockType Mux Name "Mux1" Ports [3, 1] Position [140, 91, 145, 129] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Constant Name "REF. PHI" Position [15, 146, 70, 174] Value "0" } Block { BlockType MATLABFcn Name "Reference Pulse Generator" Position [185, 95, 245, 125] MATLABFcn "gel_pulsa" } Block { BlockType Outport Name "PULSE OUT" Position [305, 103, 335, 117] } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "Reference Pulse Generator" DstPort 1 } Line { SrcBlock "Reference Pulse Generator" SrcPort 1 DstBlock "PULSE OUT" DstPort 1 } Line { SrcBlock "time" SrcPort 1 Points [45, 0; 0, 55] DstBlock "Mux1" DstPort 1 } Line { SrcBlock "RPM IN" SrcPort 1 DstBlock "Mux1" DstPort 2 } Line { SrcBlock "REF. PHI" SrcPort 1 Points [30, 0; 0, -40] DstBlock "Mux1" DstPort 3 } } } Block { BlockType SubSystem Name "PEMBAGKIT PULSA REFERENCE1" Ports [2, 1] Position [80, 354, 180, 396] TreatAsAtomicUnit off System { Name "PEMBAGKIT PULSA REFERENCE1" Location [423, 320, 938, 620] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "RPM IN" Position [30, 103, 60, 117] } Block { BlockType Inport Name "time" Position [30, 38, 60, 52] Port "2" } Block { BlockType Mux Name "Mux1" Ports [3, 1] Position [140, 91, 145, 129] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Constant Name "REF. PHI" Position [25, 146, 80, 174] Value "0" } Block { BlockType MATLABFcn Name "Reference Pulse Generator" Position [185, 95, 245, 125] MATLABFcn "gel_pulsa" } Block { BlockType Outport Name "PULSE OUT" Position [305, 103, 335, 117] } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "Reference Pulse Generator" DstPort 1 } Line { SrcBlock "Reference Pulse Generator" SrcPort 1 DstBlock "PULSE OUT" DstPort 1 } Line { SrcBlock "time" SrcPort 1 Points [30, 0; 0, 55] DstBlock "Mux1" DstPort 1 } Line { SrcBlock "RPM IN" SrcPort 1 DstBlock "Mux1" DstPort 2 } Line { SrcBlock "REF. PHI" SrcPort 1 Points [20, 0; 0, -40] DstBlock "Mux1" DstPort 3 } } } Block { BlockType MATLABFcn Name "Peng_XOR" Position [250, 370, 310, 400] MATLABFcn "peng_xor" } Block { BlockType Product Name "Product" Ports [2, 1] Position [605, 101, 650, 134] InputSameDT off } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [440, 100, 460, 120] ShowName off IconShape "round" Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Outport Name "DPHI" Position [710, 113, 740, 127] } Line { SrcBlock "REFERENCE" SrcPort 1 Points [15, 0; 0, 30] Branch { DstBlock "PEMBAGKIT PULSA REFERENCE" DstPort 1 } Branch { Points [-70, 0; 0, 315] DstBlock "PEMBAGKIT PULSA REFERENCE1" DstPort 1 } } Line { SrcBlock "time" SrcPort 1 Points [10, 0] Branch { DstBlock "PEMBAGKIT PULSA REFERENCE" DstPort 2 } Branch { Points [0, 30; -80, 0; 0, 285] DstBlock "PEMBAGKIT PULSA REFERENCE1" DstPort 2 } } Line { SrcBlock "PEMBAGKIT PULSA REFERENCE" SrcPort 1 DstBlock "Analog\nFilter Design" DstPort 1 } Line { SrcBlock "FEEDBACK" SrcPort 1 Points [65, 0] Branch { DstBlock "Analog\nFilter Design1" DstPort 1 } Branch { Points [0, 40; -100, 0; 0, 240; 150, 0; 0, -40] DstBlock "Mux2" DstPort 2 } } Line { SrcBlock "Analog\nFilter Design1" SrcPort 1 Points [95, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Analog\nFilter Design" SrcPort 1 Points [100, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "PEMBAGKIT PULSA REFERENCE1" SrcPort 1 DstBlock "Mux2" DstPort 1 } Line { SrcBlock "Mux2" SrcPort 1 DstBlock "Peng_XOR" DstPort 1 } Line { SrcBlock "Peng_XOR" SrcPort 1 DstBlock "Analog\nFilter Design2" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "DPHI" DstPort 1 } Line { SrcBlock "Analog\nFilter Design2" SrcPort 1 Points [155, 0; 0, -260] DstBlock "Product" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Comparator" DstPort 1 } Line { SrcBlock "Comparator" SrcPort 1 DstBlock "Product" DstPort 1 } } } Block { BlockType Product Name "Product" Ports [2, 1] Position [215, 286, 260, 319] InputSameDT off } Block { BlockType SubSystem Name "RECTIFIER" Ports [2, 1] Position [555, 111, 665, 164] TreatAsAtomicUnit off System { Name "RECTIFIER" Location [431, 409, 933, 723] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "AC in" Position [70, 58, 100, 72] } Block { BlockType Inport Name "Firing Angle " Position [70, 128, 100, 142] Port "2" } Block { BlockType MATLABFcn Name "Controlled Rectifier" Position [265, 60, 325, 90] MATLABFcn "rectifier" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [210, 56, 215, 94] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Saturate Name "Saturation" Position [135, 120, 165, 150] UpperLimit "pi" LowerLimit "0" } Block { BlockType Outport Name "DC out" Position [380, 68, 410, 82] } Line { SrcBlock "Firing Angle " SrcPort 1 DstBlock "Saturation" DstPort 1 } Line { SrcBlock "AC in" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Saturation" SrcPort 1 Points [10, 0; 0, -50] DstBlock "Mux" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Controlled Rectifier" DstPort 1 } Line { SrcBlock "Controlled Rectifier" SrcPort 1 DstBlock "DC out" DstPort 1 } } } Block { BlockType Constant Name "REF. ALPHA" Position [265, 136, 320, 164] Value "pi/2" } Block { BlockType Constant Name "REF. RPM" Position [15, 201, 70, 229] Value "2500" } Block { BlockType Display Name "RPM" Ports [1] Position [835, 160, 925, 190] Decimation "1" } Block { BlockType ToWorkspace Name "RPM1" Position [835, 110, 895, 140] VariableName "RPM" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType TransferFcn Name "Roda Gigi 1:25" Position [90, 195, 115, 235] Denominator "[25]" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [495, 140, 515, 160] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType ToWorkspace Name "Waktu" Position [205, 20, 265, 50] VariableName "time" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType TransferFcn Name "rad to degree" Position [450, 22, 495, 58] Numerator "[180]" Denominator "[pi]" } Block { BlockType TransferFcn Name "rad to degree1" Position [350, 402, 395, 438] Orientation "left" Numerator "[180]" Denominator "[pi]" } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [20, 0] Branch { DstBlock "Waktu" DstPort 1 } Branch { Points [0, 165] Branch { DstBlock "Phase Detector" DstPort 1 } Branch { Points [0, 285; 495, 0; 0, -80] DstBlock "OPTICAL TACHOMETER" DstPort 2 } } } Line { SrcBlock "RECTIFIER" SrcPort 1 Points [10, 0] Branch { DstBlock "DC MOTOR" DstPort 1 } Branch { Points [0, -65] Branch { DstBlock "Ea" DstPort 1 } Branch { Points [0, -45] DstBlock "Ea(t)" DstPort 1 } } } Line { SrcBlock "AC SOURCE (RMS)" SrcPort 1 DstBlock "RECTIFIER" DstPort 1 } Line { SrcBlock "REF. ALPHA" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [10, 0] Branch { DstBlock "RECTIFIER" DstPort 2 } Branch { Points [0, -45; -150, 0] DstBlock "Manual Switch3" DstPort 2 } } Line { SrcBlock "OPTICAL TACHOMETER" SrcPort 1 Points [-225, 0; 0, -160] DstBlock "Phase Detector" DstPort 3 } Line { SrcBlock "REF. RPM" SrcPort 1 DstBlock "Roda Gigi 1:25" DstPort 1 } Line { SrcBlock "DC MOTOR" SrcPort 1 Points [10, 0] Branch { Points [0, 200] DstBlock "Manual Switch" DstPort 1 } Branch { DstBlock "RPM" DstPort 1 } Branch { Points [0, -50] DstBlock "RPM1" DstPort 1 } } Line { SrcBlock "Manual Switch" SrcPort 1 DstBlock "OPTICAL TACHOMETER" DstPort 1 } Line { SrcBlock "Manual Switch1" SrcPort 1 Points [15, 0] Branch { DstBlock "DC MOTOR" DstPort 2 } Branch { Points [0, 70] DstBlock "Gangguan Beban" DstPort 1 } } Line { SrcBlock "Ground" SrcPort 1 DstBlock "Manual Switch1" DstPort 1 } Line { SrcBlock "Phase Detector" SrcPort 1 Points [30, 0] Branch { DstBlock "Manual Switch2" DstPort 1 } Branch { Points [0, -185] DstBlock "Manual Switch3" DstPort 1 } } Line { SrcBlock "Ground1" SrcPort 1 Points [20, 0; 0, -25] DstBlock "Manual Switch2" DstPort 2 } Line { SrcBlock "Load Disturbance Source" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Bnominal" SrcPort 1 Points [100, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [305, 0; 0, -90] DstBlock "Manual Switch1" DstPort 2 } Line { SrcBlock "Controler" SrcPort 1 Points [5, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "rad to degree" SrcPort 1 Points [30, 0] Branch { DstBlock "Firing Angke (in degree)" DstPort 1 } Branch { Points [0, 50] DstBlock "Ea1" DstPort 1 } } Line { SrcBlock "OPTICAL TACHOMETER" SrcPort 2 DstBlock "rad to degree1" DstPort 1 } Line { SrcBlock "rad to degree1" SrcPort 1 Points [-5, 0] Branch { DstBlock "PHI (in degree)" DstPort 1 } Branch { Points [0, 45] DstBlock "Ea2" DstPort 1 } } Line { SrcBlock "Manual Switch2" SrcPort 1 DstBlock "Controler" DstPort 1 } Line { SrcBlock "Roda Gigi 1:25" SrcPort 1 Points [0, 0] Branch { DstBlock "Phase Detector" DstPort 2 } Branch { Points [15, 0; 0, 295; 520, 0; 0, -85] DstBlock "OPTICAL TACHOMETER" DstPort 3 } } Line { SrcBlock "OPEN LOOP TEST" SrcPort 1 Points [-25, 0; 0, -10] DstBlock "Manual Switch" DstPort 2 } Line { SrcBlock "Manual Switch3" SrcPort 1 DstBlock "rad to degree" DstPort 1 } } }