📄 carrier_timing.mdl
字号:
offsetEye "0"
symbPerTrace "2"
numTraces "40"
numNewFrames "10"
LineStyles "-"
LineColors "b"
dupPoints on
fading on
render on
AxisGrid on
yMin "-0.60256115414392"
yMax "0.592716068986098"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
dispDiagram "In-phase and Quadrature"
FrameNumber off
FigPos "[347 41 286 329]"
figTitle "I/Q #2"
block_type_ "eye"
numLinesMax "8"
}
Block {
BlockType SubSystem
Name "Discrete-Time\nScatter Plot\nScope1"
Tag "ScatterPlot"
Ports [1]
Position [780, 362, 830, 418]
ShowName off
AncestorBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
LoadFcn "commblkeyescat2(gcb,'Load');"
StopFcn "sdspfscope2([],[],[],'StopBlock',[],[]);"
OpenFcn "dspblkfscope2('dynamic','OpenScope');"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Discrete-Time Scatter Plot Scope"
MaskDescription "The Discrete-Time Scatter Plot Scope is used to"
" display a modulated signal constellation in its signal space by plotting the"
" In-phase component versus the Quadrature component.
\n\nUse with 'Samples pe"
"r Symbol' set to 1 to view signals after detection or for signals without ove"
"rsampling. For oversampled signals, the input is decimated by 'Samples per s"
"ymbol' skipping 'Offset' initial samples. "
MaskHelp "helpview(commbhelp)"
MaskPromptString "-------- Show Plotting Properties ----------|Sa"
"mples per symbol:|Offset (samples):|Points displayed:|New points per display:"
"|-------- Show Rendering Properties --------|Markers:|Line style:|Line color:"
"|Color fading|High quality rendering|Show grid|-------- Show Axes Properties "
"------------|X-axis minimum:|X-axis maximum:|Y-axis minimum:|Y axis maximum:|"
"In-phase X-axis label:|Quadrature Y-axis label:|-------- Show Figure Properti"
"es -----------|Open scope at start of simulation|Point number|Scope position:"
"|Title:|Max Num Lines|Block Type"
MaskStyleString "checkbox,edit,edit,edit,edit,checkbox,edit,edit"
",edit,checkbox,checkbox,checkbox,checkbox,edit,edit,edit,edit,edit,edit,check"
"box,checkbox,checkbox,edit,edit,edit,popup(eye|scatter|xy)"
MaskTunableValueString "on,off,on,off,off,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on,off,off"
MaskCallbackString "commblkeyescat2(gcb,'cbSetMaskVis');|||||commbl"
"keyescat2(gcb,'cbSetMaskVis');|||||||commblkeyescat2(gcb,'cbSetMaskVis');||||"
"|||commblkeyescat2(gcb,'cbSetMaskVis');||||||"
MaskEnableString "on,on,on,on,on,on,on,off,on,on,on,on,on,on,on,o"
"n,on,on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,off,off,off,off,on,off,off,off,off,off,off,o"
"n,off,off,off,off,off,off,on,on,on,on,on,off,off"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,,,,,,,,,,,,,,,,,"
MaskVariables "showPlotting=&1;sampPerSymb=@2;offsetEye=@3;num"
"Traces=@4;numNewFrames=@5;showRendering=&6;LineMarkers=&7;LineStyles=&8;LineC"
"olors=&9;fading=@10;render=@11;AxisGrid=&12;showAxes=&13;xMin=@14;xMax=@15;yM"
"in=@16;yMax=@17;inphaseLabel=&18;quadratureLabel=&19;showFigure=&20;openScope"
"AtSimStart=&21;FrameNumber=&22;FigPos=@23;figTitle=&24;numLinesMax=@25;block_"
"type_=@26;"
MaskInitialization "x = [2 8 5 2 8 5 5 5];\ny = [2 8 5 8 2 5 8 2];"
"\ncommblkeyescat2(gcb,'init','scatter');\n"
MaskDisplay "image(imread('scatter.bmp','bmp'),'center')"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "off|100|0|50|5|off|.||b|on|on|on|off|-0.7315901"
"71214219|0.720957422957914|-0.721769707938134|0.730777886233999|In-phase Ampl"
"itude|Quadrature Amplitude|on|on|off|[644 44 319 319]|Scatter Plot|8|scatter"
MaskTabNameString ",,,,,,,,,,,,,,,,,,,,,,,,,"
System {
Name "Discrete-Time\nScatter Plot\nScope1"
Location [131, 480, 857, 617]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [50, 13, 80, 27]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Buffer and \nOverlap"
Ports [1, 1]
Position [375, 25, 425, 75]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "numTraces * sampPerSymb"
V "(numTraces - numNewFrames)* sampPerSymb"
ic "0"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [445, 29, 485, 71]
Output "Real and imag"
}
Block {
BlockType Reference
Name "Concatenate \nI and Q"
Ports [2, 1]
Position [505, 29, 560, 71]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [40, 54, 75, 86]
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
ShowPortLabels on
Value "offsetEye+sampPerSymb-1"
SampleMode "Discrete"
discreteOutput "Sample-based"
continuousOutput "Sample-based"
sampTime "-1"
framePeriod "-1"
additionalParams off
allowOverrides on
dataType "Inherit from 'Constant value'"
isSigned on
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "off"
Ts "-1"
FramebasedOutput "off"
}
Block {
BlockType Reference
Name "Is Discrete,\nFloat"
Ports [1, 1]
Position [100, 14, 170, 56]
SourceBlock "dspsigattribs/Check Signal\nAttributes"
SourceType "Check Signal Attributes"
ShowPortLabels on
SigAttribCheckMethod "Does not match attributes exactly"
Complexity "Complex"
Frame "Ignore"
DimsCheckMethod "Is..."
Dimensions "Vector (1-D or 2-D) or scalar"
DatatypeCheckMethod "Is..."
DatatypeGeneral "Floating-point"
DtypeFloatSpecific "Any floating-point"
DtypeFixedSpecific "Any fixed-point"
DtypeIntSpecific "Any integer"
SampleMode "Discrete"
}
Block {
BlockType Reference
Name "Is not a \nscalar-based \nvector"
Ports [1, 1]
Position [195, 14, 265, 56]
SourceBlock "dspsigattribs/Check Signal\nAttributes"
SourceType "Check Signal Attributes"
ShowPortLabels on
SigAttribCheckMethod "Matches attributes exactly"
Complexity "Ignore"
Frame "Sample-based"
DimsCheckMethod "Is..."
Dimensions "Vector (1-D or 2-D)"
DatatypeCheckMethod "Ignore"
DatatypeGeneral "Floating-point"
DtypeFloatSpecific "Any floating-point"
DtypeFixedSpecific "Any fixed-point"
DtypeIntSpecific "Any integer"
SampleMode "Ignore"
}
Block {
BlockType Reference
Name "Reshape into \nTraces"
Ports [1, 1]
Position [580, 34, 635, 66]
SourceBlock "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Customize"
OutputDimensions "[sampPerSymb, (numTraces*2)]"
}
Block {
BlockType Reference
Name "Scatter Rendering"
Ports [1]
Position [660, 25, 695, 75]
SourceBlock "dspsnks4/Vector\nScope"
SourceType "Vector Scope"
ScopeProperties off
Domain "User-defined"
HorizSpan "1"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "FigPos"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1"
XLabel "In-phase Amplitude"
YUnits "dB"
YMin "-2.37994832584865"
YMax "0.348977703761843"
YLabel "Quadrature Amplitude"
LineProperties on
LineDisables "on"
ShowPortLabels off
}
Block {
BlockType Reference
Name "Variable\nInteger Delay"
Ports [2, 1]
Position [290, 30, 355, 70]
SourceBlock "dspsigops/Variable\nInteger Delay"
SourceType "Variable Integer Delay"
dmax "100"
ic "0"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Is Discrete,\nFloat"
DstPort 1
}
Line {
SrcBlock "Is not a \nscalar-based \nvector"
SrcPort 1
Points [5, 0]
DstBlock "Variable\nInteger Delay"
DstPort 1
}
Line {
SrcBlock "Is Discrete,\nFloat"
SrcPort 1
DstBlock "Is not a \nscalar-based \nvector"
DstPort 1
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
Points [195, 0]
DstBlock "Variable\nInteger Delay"
DstPort 2
}
Line {
SrcBlock "Variable\nInteger Delay"
SrcPort 1
DstBlock "Buffer and \nOverlap"
DstPort 1
}
Line {
SrcBlock "Buffer and \nOverlap"
SrcPort 1
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
Line {
SrcBlock "Reshape into \nTraces"
SrcPort 1
DstBlock "Scatter Rendering"
DstPort 1
}
Line {
SrcBlock "Concatenate \nI and Q"
SrcPort 1
DstBlock "Reshape into \nTraces"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
DstBlock "Concatenate \nI and Q"
DstPort 2
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
DstBlock "Concatenate \nI and Q"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Discrete-time\nVCO"
Ports [1, 1]
Position [410, 280, 480, 320]
Orientation "left"
NamePlacement "alternate"
ShowName off
AncestorBlock "commutil/Discrete-time\nVCO"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Voltage-controlled oscillator"
MaskDescription "The frequency of the output signal changes with"
" the input signal."
MaskHelp "This block causes the frequency of the sinusoid"
"al oscillation signal to change with the input signal voltage. The input sens"
"itivity is the preamplifier added to the input signal. This block uses a disc"
"rete-time integrator."
MaskPromptString "Output amplitude:|Oscillation frequency (Hz):|I"
"nput sensitivity:|Initial phase (rad):|Sample time (sec):"
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 "pi2=2*pi;Kc=Kc*pi2*ts(1);Fc=Fc*pi2;"
MaskDisplay "disp('Discrete\\nVCO')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1|8.00e6|4e6|1.7*pi|1/25e6"
MaskTabNameString ",,,,"
Port {
PortNumber 1
Name "Sample clock"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
System {
Name "Discrete-time\nVCO"
Location [71, 364, 986, 530]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [50, 35, 70, 55]
ShowName off
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType DigitalClock
Name "Digital Clock"
Position [50, 93, 115, 117]
SampleTime "ts"
}
Block {
BlockType Fcn
Name "Fcn4"
Position [720, 47, 770, 73]
ShowName off
Expr "u>0"
}
Block {
BlockType Constant
Name "Phase"
Position [390, 115, 410, 135]
ShowName off
Value "Ph"
}
Block {
BlockType Gain
Name "Sensitivity"
Position [120, 30, 170, 60]
ShowName off
Gain "Kc"
}
Block {
BlockType Gain
Name "Sensitivity2"
Position [270, 90, 315, 120]
ShowName off
Gain "Fc"
}
Block {
BlockType Gain
Name "Sensitivity3"
Position [620, 45, 670, 75]
ShowName off
Gain "Ac"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [480, 42, 500, 78]
ShowName off
Inputs "+++"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [245, 40, 265, 60]
ShowName off
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [315, 40, 365, 60]
ShowName off
SampleTime "ts"
}
Block {
BlockType Fcn
Name "sin"
Position [525, 47, 600, 73]
ShowName off
Expr "cos(u[1])"
}
Block {
BlockType Outport
Name "out_1"
Position [830, 50, 850, 70]
ShowName off
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Phase"
SrcPort 1
Points [50, 0]
DstBlock "Sum"
DstPort 3
}
Line {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -