?? pll_mod.mdl
字號:
Model { Name "pll_mod" Version 2.20 SimParamPage Solver SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off StartTime "0.0" StopTime "1e-3" Solver ode45 RelTol "1e-3" AbsTol "1e-6" Refine "1" MaxStep "1/fr" InitialStep "auto" FixedStep "1/fr" MaxOrder 5 OutputOption RefineOutputTimes OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime off TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput off OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg warning MinStepSizeMsg warning UnconnectedInputMsg warning UnconnectedOutputMsg warning UnconnectedLineMsg warning ConsistencyChecking off ZeroCross on SimulationMode normal RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWPlaceOutputsASAP off RTWRetainRTWFile off RTWTemplateMakefile "grt_default_tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off BlockDefaults { Orientation right ForegroundColor black BackgroundColor white DropShadow off NamePlacement normal FontName "Helvetica" FontSize 10 FontWeight normal FontAngle normal ShowName on } 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 "pll_mod" Location [141, 255, 1100, 619] Open on ToolBar off StatusBar off ScreenColor yellow PaperOrientation landscape PaperPositionMode auto PaperType usletter PaperUnits inches Block { BlockType Gain Name "1/2pi" Position [700, 120, 730, 150] FontName "helvetica" FontSize 12 Gain "1/(2*pi)" } Block { BlockType Sin Name "FM\nmodulation" Position [40, 85, 70, 115] Amplitude "100e3" Frequency "2*pi*10e3" Phase "0" SampleTime "0" } Block { BlockType Gain Name "PFD gain\n[V/rad]" Position [350, 121, 380, 149] FontName "helvetica" FontSize 12 Gain "Kphi" } Block { BlockType ToWorkspace Name "[V]" Position [540, 58, 580, 72] FontName "helvetica" FontSize 12 VariableName "vtune" Buffer "1e6" Decimation "1" SampleTime "0" } Block { BlockType Fcn Name "divider" Position [400, 205, 445, 235] Orientation left FontName "helvetica" FontSize 12 Expr "u[1]/N" } Block { BlockType ToWorkspace Name "fout\n[Hz]" Position [835, 128, 870, 142] FontName "helvetica" FontSize 12 VariableName "fv" Buffer "1e6" Decimation "1" SampleTime "0" } Block { BlockType Constant Name "fref\n[Hz]" Position [40, 157, 70, 173] FontName "helvetica" FontSize 12 Value "fr" } Block { BlockType TransferFcn Name "freq->phase\n[rad/Hz]" Position [605, 112, 635, 158] FontName "helvetica" FontSize 12 Numerator "2*pi" Denominator "[1 0]" } Block { BlockType TransferFcn Name "freq->phase\n[rad/Hz]1" Position [195, 107, 225, 153] FontName "helvetica" FontSize 12 Numerator "2*pi" Denominator "[1 0]" } Block { BlockType ToWorkspace Name "input" Position [180, 52, 230, 68] FontName "helvetica" FontSize 12 VariableName "fin" Buffer "1e6" Decimation "1" SampleTime "0" } Block { BlockType TransferFcn Name "integrator +\nphase lead" Position [430, 115, 490, 155] FontName "helvetica" FontSize 12 Numerator "[Tau2 1]" Denominator "[Tau1 0]" } Block { BlockType Sum Name "phase\ncomp." Ports [2, 1, 0, 0, 0] Position [285, 123, 305, 147] FontName "helvetica" FontSize 12 Inputs "+-" } Block { BlockType Sum Name "phase\ncomp.1" Ports [2, 1, 0, 0, 0] Position [125, 118, 145, 142] FontName "helvetica" FontSize 12 Inputs "++" } Block { BlockType ToWorkspace Name "phase error\n[rad]" Position [360, 53, 395, 67] FontName "helvetica" FontSize 12 VariableName "perr" Buffer "1e6" Decimation "1" SampleTime "0" } Block { BlockType Derivative Name "phase->freq" Position [765, 120, 795, 150] FontName "helvetica" FontSize 12 } Block { BlockType ToWorkspace Name "phi_in\n[rad]" Position [260, 52, 310, 68] FontName "helvetica" FontSize 12 VariableName "phi_ref" Buffer "1e6" Decimation "1" SampleTime "0" } Block { BlockType ToWorkspace Name "phi_out\n[rad]" Position [690, 63, 740, 77] FontName "helvetica" FontSize 12 VariableName "phi_out" Buffer "1e6" Decimation "1" SampleTime "0" } Block { BlockType SubSystem Name "time" Ports [0, 0, 0, 0, 0] Position [32, 274, 78, 307] FontName "helvetica" FontSize 12 ShowPortLabels off MaskType "time" MaskDisplay "disp('Save\\ntime t')" MaskIconFrame on MaskIconOpaque on MaskIconRotate none MaskIconUnits autoscale System { Name "time" Location [163, 139, 498, 323] Open off ToolBar off StatusBar off ScreenColor white PaperOrientation landscape PaperPositionMode auto PaperType usletter PaperUnits inches Block { BlockType Clock Name "Clock" Position [75, 105, 95, 125] DeleteFcn "simclock BlockIsBeingDestroyed" PostSaveFcn "simclock Save" Location [30, 40, 140, 75] } Block { BlockType ToWorkspace Name "To Workspace" Position [165, 107, 215, 123] VariableName "t" Buffer "1e6" Decimation "1" SampleTime "0" } Line { SrcBlock "Clock" SrcPort 1 DstBlock "To Workspace" DstPort 1 } Annotation { Position [147, 77] VerticalAlignment top Text "Save time vector t" } } } Block { BlockType SubSystem Name "vco\n[Hz/V]" Ports [1, 1, 0, 0, 0] Position [535, 115, 575, 155] FontName "helvetica" FontSize 12 ShowPortLabels off MaskType "VCO" MaskDescription "VCO - output [Hz] " MaskPromptString " Sensitivity [Hz/V] | Min. frequency (Vtune=0V)"" [Hz] " MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskVariables "Kv=@1;fmin=@2;" MaskInitialization " t=0:0.01:1;" MaskDisplay "plot(sin(0:pi/8:2*pi),cos(0:pi/8:2*pi),[-1:1/8:""1]*0.75,sin(0:pi/8:2*pi)*0.5)" MaskIconFrame on MaskIconOpaque on MaskIconRotate none MaskIconUnits autoscale MaskValueString "Kv|10e6" System { Name "vco\n[Hz/V]" Location [58, 80, 630, 442] Open off ToolBar off StatusBar off ScreenColor white PaperOrientation landscape PaperPositionMode auto PaperType usletter PaperUnits inches Block { BlockType Inport Name "Vcntrl" Position [85, 115, 105, 135] Port "1" PortWidth "-1" SampleTime "-1" } Block { BlockType Gain Name "Gain" Position [165, 110, 200, 140] Gain "Kv" } Block { BlockType Sum Name "Sum" Ports [2, 1, 0, 0, 0] Position [265, 140, 285, 160] Inputs "++" } Block { BlockType Constant Name "const" Position [145, 188, 175, 212] Value "fmin" } Block { BlockType Outport Name "RF\nfreq" Position [345, 140, 365, 160] Port "1" OutputWhenDisabled held InitialOutput "0" } Line { SrcBlock "Sum" SrcPort 1 DstBlock "RF\nfreq" DstPort 1 } Line { SrcBlock "Vcntrl" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [25, 0; 0, 20] DstBlock "Sum" DstPort 1 } Line { SrcBlock "const" SrcPort 1 Points [35, 0; 0, -45] DstBlock "Sum" DstPort 2 } Annotation { Position [267, 47] VerticalAlignment top ForegroundColor blue Text "Voltage-controlled oscillator\n\nfout = fmi""n + Vin*Kv " } } } Line { SrcBlock "freq->phase\n[rad/Hz]" SrcPort 1 Points [15, 0] Branch { Points [0, -65] DstBlock "phi_out\n[rad]" DstPort 1 } Branch { Points [15, 0] Branch { DstBlock "1/2pi" DstPort 1 } Branch { Points [0, 85] DstBlock "divider" DstPort 1 } } } Line { SrcBlock "1/2pi" SrcPort 1 DstBlock "phase->freq" DstPort 1 } Line { SrcBlock "integrator +\nphase lead" SrcPort 1 Points [10, 0] Branch { Points [0, -70] DstBlock "[V]" DstPort 1 } Branch { DstBlock "vco\n[Hz/V]" DstPort 1 } } Line { SrcBlock "divider" SrcPort 1 Points [-145, 0; 0, -80] DstBlock "phase\ncomp." DstPort 2 } Line { SrcBlock "vco\n[Hz/V]" SrcPort 1 DstBlock "freq->phase\n[rad/Hz]" DstPort 1 } Line { SrcBlock "PFD gain\n[V/rad]" SrcPort 1 DstBlock "integrator +\nphase lead" DstPort 1 } Line { SrcBlock "phase\ncomp." SrcPort 1 Points [5, 0] Branch { DstBlock "PFD gain\n[V/rad]" DstPort 1 } Branch { Points [10, 0; 0, -75] DstBlock "phase error\n[rad]" DstPort 1 } } Line { SrcBlock "phase->freq" SrcPort 1 DstBlock "fout\n[Hz]" DstPort 1 } Line { SrcBlock "freq->phase\n[rad/Hz]1" SrcPort 1 Points [15, 0] Branch { DstBlock "phi_in\n[rad]" DstPort 1 } Branch { DstBlock "phase\ncomp." DstPort 1 } } Line { SrcBlock "phase\ncomp.1" SrcPort 1 Points [20, 0] Branch { DstBlock "freq->phase\n[rad/Hz]1" DstPort 1 } Branch { Points [-5, 0] DstBlock "input" DstPort 1 } } Line { SrcBlock "fref\n[Hz]" SrcPort 1 Points [35, 0] DstBlock "phase\ncomp.1" DstPort 2 } Line { SrcBlock "FM\nmodulation" SrcPort 1 Points [35, 0] DstBlock "phase\ncomp.1" DstPort 1 } Annotation { Position [472, 18] VerticalAlignment top ForegroundColor blue BackgroundColor yellow Text "Integer-N PLL - linear model" FontName "helvetica" FontSize 14 } }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -