📄 dpll1lp.mdl
字号:
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Digital\nFilter Design1"
Ports [1, 1]
Position [300, 189, 365, 231]
UserDataPersistent on
UserData "DataTag0"
SourceBlock "dsparch4/Digital\nFilter Design"
SourceType "Digital Filter Design"
}
Block {
BlockType SubSystem
Name "Discrete-Time\nVCO"
Ports [1, 2]
Position [540, 188, 620, 232]
AncestorBlock "commcontsrc2/Discrete-Time\nVCO"
FontName "Arial"
TreatAsAtomicUnit off
MaskType "Discrete-Time VCO"
MaskDescription "Generate a discrete-time output signal whose fr"
"equency changes in response to the amplitude variations of the input signal. "
"The input signal must be a scalar."
MaskHelp "helpview(commbhelp)"
MaskPromptString "Output amplitude:|Oscillation frequency (Hz):|I"
"nput sensitivity:|Initial phase (rad):|Sample time:"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "Ac=@1;Fc=@2;Kc=@3;Ph=@4;ts=@5;"
MaskInitialization "if ((length(Ac)~=1) | (length(Fc)~=1) | (length"
"(Kc)~=1) | (length(Ph)~=1) | (length(ts)~=1))error('Mask parameters must be s"
"calar values.');end;\npi2=2*pi;Kc=Kc*pi2*ts(1);Fc=Fc*pi2;"
MaskDisplay "disp('Discrete-Time\\nVCO')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1|10e6+500|1e3|0|2.5e-8"
System {
Name "Discrete-Time\nVCO"
Location [40, 325, 936, 565]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [15, 70, 35, 90]
ShowName off
}
Block {
BlockType Reference
Name "Check Signal\nAttributes"
Ports [1, 1]
Position [70, 59, 140, 101]
ShowName off
SourceBlock "dspsigattribs/Check Signal\nAttributes"
SourceType "Check Signal Attributes"
SigAttribCheckMethod "Does not match attributes exactly"
Complexity "Ignore"
Frame "Ignore"
DimsCheckMethod "Is..."
Dimensions "Scalar (1-D or 2-D)"
DatatypeCheckMethod "Ignore"
DatatypeGeneral "Boolean"
DtypeFloatSpecific "Any floating-point"
DtypeFixedSpecific "Any fixed-point"
DtypeIntSpecific "Any integer"
SampleMode "Ignore"
}
Block {
BlockType Reference
Name "Convert 2-D to 1-D"
Ports [1, 1]
Position [160, 63, 205, 97]
ShowName off
SourceBlock "dspsigattribs/Convert 2-D to 1-D"
SourceType "Convert 2-D to 1-D"
}
Block {
BlockType DigitalClock
Name "Digital Clock"
Position [280, 128, 345, 152]
ShowName off
SampleTime "ts"
}
Block {
BlockType Reference
Name "Discrete\nConstant"
Ports [0, 1]
Position [475, 151, 495, 169]
ShowName off
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
Value "Ph"
SampleMode "Discrete"
discreteOutput "Sample-based (interpret vectors as 1-D)"
continuousOutput "Sample-based"
sampTime "ts"
framePeriod "ts"
additionalParams off
allowOverrides on
dataType "Inherit from 'Constant value'"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "on"
Ts "ts"
FramebasedOutput "off"
}
Block {
BlockType Reference
Name "Inherit Shape"
Ports [2, 1]
Position [740, 83, 830, 132]
SourceBlock "commblksprivate/Inherit Shape"
SourceType "Inherit Shape"
}
Block {
BlockType Reference
Name "Inherit Shape1"
Ports [2, 1]
Position [740, 13, 830, 62]
SourceBlock "commblksprivate/Inherit Shape"
SourceType "Inherit Shape"
}
Block {
BlockType Gain
Name "Sensitivity"
Position [220, 65, 270, 95]
ShowName off
Gain "Kc"
}
Block {
BlockType Gain
Name "Sensitivity2"
Position [385, 125, 430, 155]
ShowName off
Gain "Fc"
}
Block {
BlockType Gain
Name "Sensitivity3"
Position [655, 80, 705, 110]
ShowName off
Gain "Ac"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [540, 77, 560, 113]
ShowName off
Inputs "+++"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [305, 75, 325, 95]
ShowName off
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [585, 82, 630, 108]
ShowName off
Operator "cos"
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [375, 75, 425, 95]
ShowName off
SampleTime "ts"
}
Block {
BlockType Outport
Name "out_1"
Position [850, 100, 870, 120]
ShowName off
InitialOutput "0"
}
Block {
BlockType Outport
Name "out_2"
Position [850, 30, 870, 50]
ShowName off
Port "2"
InitialOutput "0"
}
Line {
SrcBlock "in_1"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 100; 665, 0; 0, -60]
DstBlock "Inherit Shape"
DstPort 2
}
Branch {
DstBlock "Check Signal\nAttributes"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "Inherit Shape1"
DstPort 2
}
}
Line {
SrcBlock "Sensitivity"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Line {
SrcBlock "Digital Clock"
SrcPort 1
DstBlock "Sensitivity2"
DstPort 1
}
Line {
SrcBlock "Sensitivity2"
SrcPort 1
Points [65, 0; 0, -45]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
Points [0, 20; -180, 0; 0, -15]
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [30, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Inherit Shape1"
DstPort 1
}
}
}
Line {
SrcBlock "Discrete\nConstant"
SrcPort 1
Points [10, 0; 0, -55]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Trigonometric\nFunction"
SrcPort 1
DstBlock "Sensitivity3"
DstPort 1
}
Line {
SrcBlock "Convert 2-D to 1-D"
SrcPort 1
DstBlock "Sensitivity"
DstPort 1
}
Line {
SrcBlock "Sensitivity3"
SrcPort 1
DstBlock "Inherit Shape"
DstPort 1
}
Line {
SrcBlock "Inherit Shape"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Check Signal\nAttributes"
SrcPort 1
DstBlock "Convert 2-D to 1-D"
DstPort 1
}
Line {
SrcBlock "Inherit Shape1"
SrcPort 1
DstBlock "out_2"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Unit Delay"
DstPort 1
}
}
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [190, 191, 235, 224]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -