📄 ch7example8.mdl
字号:
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType ZeroOrderHold
SampleTime "1"
}
}
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 "ch7example8"
Location [247, 110, 1020, 437]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType DiscreteFilter
Name "Discrete Filter"
Position [295, 92, 485, 138]
Numerator "rcosine(1e3,1e4,'fir/normal',0.75,3)"
Denominator "1"
SampleTime "-1"
}
Block {
BlockType Reference
Name "Discrete-Time\nEye Diagram\nScope"
Tag "EyeDiagram"
Ports [1]
Position [585, 172, 625, 208]
FontSize 10
SourceBlock "commsink2/Discrete-Time\nEye Diagram\nScope"
SourceType "Discrete-Time Eye Diagram Scope"
showPlotting on
sampPerSymb "10"
offsetEye "0"
symbPerTrace "2"
numTraces "180"
numNewFrames "60"
showRendering off
LineStyles "-"
LineColors "b"
dupPoints on
fading on
render on
AxisGrid on
showAxes off
yMin "-4.80777507256043"
yMax "4.60085781903266"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
showFigure on
openScopeAtSimStart on
dispDiagram "In-phase Only"
FrameNumber off
FigPos "[55 408 358 311]"
figTitle "Eye Diagram"
block_type_ "eye"
numLinesMax "8"
}
Block {
BlockType Reference
Name "Downsample"
Ports [1, 1]
Position [530, 100, 570, 130]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "4"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame size"
}
Block {
BlockType Reference
Name "Integer Delay"
Ports [1, 1]
Position [257, 140, 283, 170]
Orientation "down"
FontSize 10
SourceBlock "dspsigops/Integer Delay"
SourceType "Integer Delay"
delay "30"
ic "0"
reset_popup "None"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [235, 176, 240, 214]
Orientation "left"
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [15, 93, 95, 137]
FontName "Arial"
FontSize 10
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
mul "4"
seed "37"
Ts "1e-3"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [185, 178, 215, 212]
Orientation "left"
Location [10, 472, 311, 696]
Open on
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.02"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Reference
Name "Spectrum\nScope"
Ports [1]
Position [590, 90, 625, 140]
FontSize 10
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "512"
inpFftLenInherit on
FFTlength "1024"
numAvg "100"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-80"
YMax "20"
YLabel "Magnitude, dB"
LineProperties off
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [110, 91, 190, 139]
FontSize 10
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
M "4"
polarity "Positive"
}
Block {
BlockType Reference
Name "Upsample"
Ports [1, 1]
Position [215, 98, 250, 132]
SourceBlock "dspsigops/Upsample"
SourceType "Upsample"
N "10"
phase "0"
ic "0"
mode "Maintain input frame size"
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
DstBlock "Upsample"
DstPort 1
}
Line {
SrcBlock "Upsample"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Discrete Filter"
DstPort 1
}
Branch {
DstBlock "Integer Delay"
DstPort 1
}
}
Line {
SrcBlock "Downsample"
SrcPort 1
DstBlock "Spectrum\nScope"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Integer Delay"
SrcPort 1
Points [0, 10]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "Discrete Filter"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Downsample"
DstPort 1
}
Branch {
Points [0, 75]
Branch {
DstBlock "Discrete-Time\nEye Diagram\nScope"
DstPort 1
}
Branch {
Points [-215, 0; 0, 15]
DstBlock "Mux"
DstPort 2
}
}
}
Annotation {
Name "滚升余弦滤波器和眼图测试模型\n文件名:ch7exampl"
"e8.mdl"
Position [389, 216]
DropShadow on
FontName "Arial"
FontSize 12
}
Annotation {
Name "滚升余弦滤波器"
Position [391, 162]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -