Model { Name "PhD" 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 "Sun Mar 27 13:10:19 2005" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" ModifiedDateFormat "%" LastModifiedDate "Tue Mar 29 01:13:35 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 "2.5" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "0.0002" RelTol "1e-3" 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 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 "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 "PhD" Location [2, 74, 790, 556] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Reference Name "Close/Open Loop" Ports [2, 1] Position [340, 367, 370, 403] Orientation "left" SourceBlock "simulink/Signal\nRouting/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType Display Name "Display" Ports [1] Position [630, 130, 720, 160] Decimation "1" } Block { BlockType Display Name "Display1" Ports [1] Position [635, 190, 725, 220] Decimation "1" } Block { BlockType Display Name "Display2" Ports [1] Position [110, 315, 200, 345] Orientation "left" Decimation "1" } Block { BlockType Constant Name "Frekuwnsi Acuan\n[Hertz]" Position [30, 225, 60, 255] } Block { BlockType Ground Name "Ground" Position [425, 385, 445, 405] Orientation "left" } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [100, 35, 130, 65] } Block { BlockType ToWorkspace Name "LPF Out" Position [640, 255, 700, 285] VariableName "lpfout" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType TransferFcn Name "LPF2" Position [530, 187, 590, 223] Denominator "[1 0]" } Block { BlockType ToWorkspace Name "Lock Detect" Position [650, 65, 710, 95] VariableName "lockdetect" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Gain Name "Loop Gain" Position [465, 358, 505, 392] Orientation "left" Gain "400" } Block { BlockType ToWorkspace Name "Luaran VCO1" Position [425, 75, 485, 105] VariableName "outvco1" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "Luaran VCO2" Position [430, 295, 490, 325] VariableName "outvco2" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Mux Name "Mux" Ports [4, 1] Position [260, 112, 265, 173] ShowName off DisplayOption "bar" } Block { BlockType Mux Name "Mux1" Ports [3, 1] Position [265, 230, 270, 290] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType ToWorkspace Name "Pencatat Waktu" Position [165, 35, 225, 65] VariableName "time" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "Pengali" Position [530, 255, 590, 285] VariableName "outprod" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Product Name "Product" Ports [2, 1] Position [445, 186, 490, 219] InputSameDT off } Block { BlockType Constant Name "Selisih Fasa\n[derajat]" Position [40, 105, 70, 135] Value "0" } Block { BlockType Constant Name "Selisih Frekuensi\n[Hertz]" Position [30, 165, 60, 195] Value "0.25" } Block { BlockType Step Name "Step" Position [30, 35, 60, 65] Time "0" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [450, 135, 470, 155] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [445, 245, 465, 265] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType ToWorkspace Name "Umpan balik" Position [315, 315, 375, 345] Orientation "left" VariableName "feedback" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType MATLABFcn Name "VCO1" Position [315, 130, 375, 160] MATLABFcn "vco1" } Block { BlockType MATLABFcn Name "VCO2" Position [315, 245, 375, 275] MATLABFcn "vco2" } Line { SrcBlock "Step" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { SrcBlock "Integrator" SrcPort 1 Points [10, 0] Branch { DstBlock "Pencatat Waktu" DstPort 1 } Branch { Points [0, 70] Branch { DstBlock "Mux" DstPort 1 } Branch { Points [0, 120] DstBlock "Mux1" DstPort 1 } } } Line { Labels [1, 0] SrcBlock "Frekuwnsi Acuan\n[Hertz]" SrcPort 1 Points [70, 0] Branch { Points [0, 20] DstBlock "Mux1" DstPort 2 } Branch { Points [0, -90] DstBlock "Mux" DstPort 3 } } Line { Labels [0, 0] SrcBlock "Selisih Fasa\n[derajat]" SrcPort 1 Points [60, 0; 0, 15] DstBlock "Mux" DstPort 2 } Line { SrcBlock "Selisih Frekuensi\n[Hertz]" SrcPort 1 Points [60, 0; 0, -15] DstBlock "Mux" DstPort 4 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "VCO1" DstPort 1 } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "VCO2" DstPort 1 } Line { SrcBlock "VCO1" SrcPort 1 Points [25, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, -55] DstBlock "Luaran VCO1" DstPort 1 } Branch { Points [0, 110] DstBlock "Sum1" DstPort 1 } } Line { SrcBlock "VCO2" SrcPort 1 Points [10, 0] Branch { Labels [1, 0] Points [0, -90] DstBlock "Sum" DstPort 2 } Branch { Points [0, 20] Branch { Points [0, 30] DstBlock "Luaran VCO2" DstPort 1 } Branch { DstBlock "Sum1" DstPort 2 } } } Line { SrcBlock "Sum" SrcPort 1 Points [20, 0] Branch { Points [0, 35; -80, 0; 0, 15] DstBlock "Product" DstPort 1 } Branch { Points [105, 0] Branch { DstBlock "Display" DstPort 1 } Branch { Points [0, -65] DstBlock "Lock Detect" DstPort 1 } } } Line { SrcBlock "Product" SrcPort 1 Points [5, 0] Branch { DstBlock "LPF2" DstPort 1 } Branch { Points [0, 65] DstBlock "Pengali" DstPort 1 } } Line { SrcBlock "LPF2" SrcPort 1 Points [10, 0] Branch { DstBlock "Display1" DstPort 1 } Branch { Points [0, 65] Branch { Points [0, 105] DstBlock "Loop Gain" DstPort 1 } Branch { DstBlock "LPF Out" DstPort 1 } } } Line { SrcBlock "Sum1" SrcPort 1 Points [10, 0; 0, -20; -65, 0; 0, -25] DstBlock "Product" DstPort 2 } Line { SrcBlock "Ground" SrcPort 1 DstBlock "Close/Open Loop" DstPort 2 } Line { SrcBlock "Loop Gain" SrcPort 1 Points [-50, 0] Branch { DstBlock "Close/Open Loop" DstPort 1 } Branch { Points [0, -45] DstBlock "Umpan balik" DstPort 1 } } Line { SrcBlock "Close/Open Loop" SrcPort 1 Points [-110, 0; 0, -55] Branch { Points [0, -50] DstBlock "Mux1" DstPort 3 } Branch { DstBlock "Display2" DstPort 1 } } Annotation { Position [462, 236] } } }