Model { Name "phase_det" 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 Mar 05 21:17:27 2005" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "WinXp" ModifiedDateFormat "%" LastModifiedDate "Sat Mar 12 09:28:48 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 "100" 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 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 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 Scope Floating off ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Signum ZeroCross on } 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 "phase_det" Location [415, 124, 1003, 484] 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 "Constant" Position [75, 110, 105, 140] Value "-1" } Block { BlockType ToWorkspace Name "DC Output" Position [905, 75, 965, 105] VariableName "vout" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "DC Output1" Position [650, 15, 710, 45] VariableName "outcomp" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Display Name "Display" Ports [1] Position [905, 23, 980, 47] Decimation "1" } Block { BlockType Gain Name "Gain" Position [395, 75, 425, 105] Gain "-1" } Block { BlockType Integrator Name "Integrator1" Ports [1, 1] Position [75, 55, 105, 85] } Block { BlockType Integrator Name "Integrator2" Ports [1, 1] Position [750, 235, 780, 265] Orientation "left" } Block { BlockType Integrator Name "Integrator3" Ports [1, 1] Position [655, 75, 685, 105] } Block { BlockType ToWorkspace Name "Isyarat Free Running" Position [550, 240, 610, 270] VariableName "frun" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType ToWorkspace Name "Isyarat Referensi" Position [335, 110, 395, 140] VariableName "fref" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [140, 61, 145, 99] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [700, 176, 705, 214] Orientation "left" ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Scope Name "Scope1" Ports [1] Position [335, 14, 365, 46] Location [188, 355, 512, 594] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } List { ListType SelectedSignals axes1 "" } SaveName "ScopeData1" DataFormat "StructureWithTime" } Block { BlockType Signum Name "Sign" Position [270, 65, 300, 95] } Block { BlockType Signum Name "Sign1" Position [570, 180, 600, 210] Orientation "left" } Block { BlockType Step Name "Step" Position [15, 55, 45, 85] Time "0" SampleTime "0" } Block { BlockType Step Name "Step1" Position [820, 235, 850, 265] Orientation "left" Time "0" SampleTime "0" } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [460, 80, 480, 100] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeMode "Inherit via internal rule" } Block { BlockType TransferFcn Name "Transfer Fcn" Position [750, 72, 810, 108] Denominator "[5 1]" } Block { BlockType MATLABFcn Name "VCO Free Running" Position [620, 180, 680, 210] Orientation "left" MATLABFcn "vcorun" } Block { BlockType MATLABFcn Name "VCO Referensi" Position [180, 65, 240, 95] MATLABFcn "vcoref" } Block { BlockType ToWorkspace Name "WAKTU" Position [135, 15, 195, 45] VariableName "time" MaxDataPoints "inf" SampleTime "-1" SaveFormat "Array" } Line { SrcBlock "Step" SrcPort 1 DstBlock "Integrator1" DstPort 1 } Line { SrcBlock "Integrator1" SrcPort 1 Points [5, 0] Branch { DstBlock "Mux" DstPort 1 } Branch { Points [5, 0] DstBlock "WAKTU" DstPort 1 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "VCO Referensi" DstPort 1 } Line { SrcBlock "Sign" SrcPort 1 Points [15, 0] Branch { DstBlock "Scope1" DstPort 1 } Branch { Points [0, 10] Branch { DstBlock "Isyarat Referensi" DstPort 1 } Branch { DstBlock "Gain" DstPort 1 } } } Line { SrcBlock "Constant" SrcPort 1 Points [15, 0] DstBlock "Mux" DstPort 2 } Line { SrcBlock "VCO Referensi" SrcPort 1 DstBlock "Sign" DstPort 1 } Line { SrcBlock "VCO Free Running" SrcPort 1 DstBlock "Sign1" DstPort 1 } Line { SrcBlock "Sign1" SrcPort 1 Points [-30, 0] Branch { DstBlock "Isyarat Free Running" DstPort 1 } Branch { Points [-65, 0] DstBlock "Sum1" DstPort 2 } } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "VCO Free Running" DstPort 1 } Line { SrcBlock "Step1" SrcPort 1 DstBlock "Integrator2" DstPort 1 } Line { SrcBlock "Integrator2" SrcPort 1 Points [0, -45] DstBlock "Mux1" DstPort 2 } Line { Points [590, 90; 35, 0] Branch { DstBlock "Integrator3" DstPort 1 } Branch { Points [0, -60] DstBlock "DC Output1" DstPort 1 } } Line { SrcBlock "Sum1" SrcPort 1 Points [75, 0] } Line { Labels [0, 0] SrcBlock "Integrator3" SrcPort 1 DstBlock "Transfer Fcn" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { Labels [0, 0] SrcBlock "Transfer Fcn" SrcPort 1 Points [45, 0] Branch { DstBlock "DC Output" DstPort 1 } Branch { Points [0, -55] DstBlock "Display" DstPort 1 } Branch { Points [0, 95] DstBlock "Mux1" DstPort 1 } } Annotation { Position [247, 205] } } }