📄 ch7example10.mdl
字号:
symbPerTrace "2"
numTraces "80"
numNewFrames "80"
showRendering off
LineStyles "-"
LineColors "b"
dupPoints on
fading off
render on
AxisGrid on
showAxes off
yMin "-2.17080016151619"
yMax "2.13569726270215"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
showFigure off
openScopeAtSimStart on
dispDiagram "In-phase Only"
FrameNumber on
FigPos "[76 76 560 487]"
figTitle "Eye Diagram"
block_type_ "eye"
numLinesMax "8"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [580, 146, 670, 214]
Decimation "1"
}
Block {
BlockType Reference
Name "Downsample"
Ports [1, 1]
Position [600, 28, 635, 62]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "10"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame size"
Port {
PortNumber 1
Name "收"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [485, 152, 560, 203]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "1"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Reference
Name "Integer Delay\n延迟22个时隙"
Ports [1, 1]
Position [285, 170, 340, 210]
SourceBlock "dspsigops/Integer Delay"
SourceType "Integer Delay"
delay "22"
ic "0"
reset_popup "None"
Port {
PortNumber 1
Name "发"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Product
Name "Product1\n采样"
Ports [2, 1]
Position [375, 26, 420, 59]
InputSameDT off
}
Block {
BlockType RandomNumber
Name "Random\nNumber"
Position [90, 45, 120, 75]
Variance "0.01"
SampleTime "0"
}
Block {
BlockType Relay
Name "Relay\n判决"
Position [455, 30, 485, 60]
OnSwitchValue "0"
OffSwitchValue "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [425, 156, 455, 189]
Location [33, 524, 357, 717]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.04"
YMin "-2~-2"
YMax "2~2"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType SubSystem
Name "Subsystem\n定时提取"
Ports [1, 1]
Position [280, 88, 345, 132]
TreatAsAtomicUnit off
System {
Name "Subsystem\n定时提取"
Location [80, 82, 973, 525]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 93, 45, 107]
}
Block {
BlockType Abs
Name "Abs\n提取2次谐波"
Position [200, 95, 230, 125]
}
Block {
BlockType Reference
Name "Counter\n2分频"
Ports [1, 1]
Position [495, 86, 545, 144]
SourceBlock "dspswit3/Counter"
SourceType "Counter"
Direction "Up"
CountEvent "Rising edge"
CounterSize "User defined"
MaxCount "1"
InitialCount "0"
Output "Count"
HitValue "0"
ResetInput off
SamplesPerFrame "1"
Ts "1"
CntDtype "Double"
HitDtype "Logical"
}
Block {
BlockType Reference
Name "Digital\nFilter Design"
Ports [1, 1]
Position [255, 82, 320, 138]
UserDataPersistent on
UserData "DataTag0"
SourceBlock "dsparch4/Digital\nFilter Design"
SourceType "Digital Filter Design"
}
Block {
BlockType Reference
Name "Discrete-Time\nVCO"
Ports [1, 1]
Position [360, 163, 440, 207]
Orientation "left"
FontName "Arial"
SourceBlock "commcontsrc2/Discrete-Time\nVCO"
SourceType "Discrete-Time VCO"
Ac "1"
Fc "1998"
Kc "8"
Ph "0"
ts "1/10000"
}
Block {
BlockType Gain
Name "Gain"
Position [135, 94, 180, 126]
Gain "100"
}
Block {
BlockType Ground
Name "Ground"
Position [20, 150, 40, 170]
}
Block {
BlockType Reference
Name "Integer Delay\n延时,对准眼图中心"
Ports [1, 1]
Position [575, 95, 630, 135]
SourceBlock "dspsigops/Integer Delay"
SourceType "Integer Delay"
delay "4"
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Manual Switch\n锁定切换"
Ports [2, 1]
Position [85, 92, 115, 128]
SourceBlock "simulink/Signal\nRouting/Manual Switch"
SourceType "Manual Switch"
sw "1"
action "0"
}
Block {
BlockType Product
Name "Product\n鉴相"
Ports [2, 1]
Position [380, 101, 425, 134]
InputSameDT off
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator1\n接收定时"
Position [585, 173, 630, 207]
Period "10"
SampleTime "1/10000"
}
Block {
BlockType Scope
Name "Scope1测试用"
Ports [2]
Position [700, 162, 730, 198]
Location [32, 481, 407, 711]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.012"
YMin "-1~-1"
YMax "2~2"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Outport
Name "Out1"
Position [695, 108, 725, 122]
}
Line {
SrcBlock "Abs\n提取2次谐波"
SrcPort 1
DstBlock "Digital\nFilter Design"
DstPort 1
}
Line {
SrcBlock "Discrete-Time\nVCO"
SrcPort 1
Points [-15, 0; 0, -60]
Branch {
DstBlock "Product\n鉴相"
DstPort 2
}
Branch {
Points [0, -35; 140, 0]
DstBlock "Counter\n2分频"
DstPort 1
}
}
Line {
SrcBlock "Product\n鉴相"
SrcPort 1
Points [30, 0; 0, 65]
DstBlock "Discrete-Time\nVCO"
DstPort 1
}
Line {
SrcBlock "Digital\nFilter Design"
SrcPort 1
DstBlock "Product\n鉴相"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Abs\n提取2次谐波"
DstPort 1
}
Line {
SrcBlock "Manual Switch\n锁定切换"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Manual Switch\n锁定切换"
DstPort 1
}
Line {
SrcBlock "Ground"
SrcPort 1
Points [10, 0; 0, -40]
DstBlock "Manual Switch\n锁定切换"
DstPort 2
}
Line {
SrcBlock "Counter\n2分频"
SrcPort 1
DstBlock "Integer Delay\n延时,对准眼图中心"
DstPort 1
}
Line {
SrcBlock "Integer Delay\n延时,对准眼图中心"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
DstBlock "Out1"
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "Scope1测试用"
DstPort 1
}
}
Line {
SrcBlock "Pulse\nGenerator1\n接收定时"
SrcPort 1
DstBlock "Scope1测试用"
DstPort 2
}
Annotation {
Name "1900Hz~2100Hz"
Position [280, 176]
}
}
}
Block {
BlockType SubSystem
Name "Subsystem\n二进制信源"
Ports [0, 2]
Position [25, 20, 65, 80]
TreatAsAtomicUnit off
System {
Name "Subsystem\n二进制信源"
Location [177, 105, 669, 296]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [20, 28, 80, 72]
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
P "0.5"
seed "61"
Ts "1e-3"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType DiscreteFilter
Name "Discrete Filter\n根升余弦"
Position [250, 31, 395, 69]
Numerator "rcosine(1,10,'fir/sqrt',0.5,10)"
Denominator "1"
SampleTime "1/10000"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -