📄 ofdm_16qam2.mdl
字号:
BlockType Selector
Name "Remove\n zero-padding\nand\nreorder"
Ports [1, 1]
Position [570, 388, 620, 432]
Orientation "left"
NamePlacement "alternate"
Elements "[29:128 130:229]"
Rows "[29:128 130:229]"
InputPortWidth "256"
OutputPortSize "[(-2)]"
}
Block {
BlockType Reference
Name "Remove\nPilots"
Ports [1, 2]
Position [495, 372, 540, 443]
Orientation "left"
NamePlacement "alternate"
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{[1:12 14:37 39:62 64:87 89:112 114:137 139:162"
" 164:187 189:200],[13 38 63 88 113 138 163 188]}"
idxErrMode "Clip Index"
}
Block {
BlockType Selector
Name "Remove Cyclic\nPrefix"
Ports [1, 1]
Position [795, 388, 845, 432]
Orientation "left"
NamePlacement "alternate"
Elements "[65:320]"
Rows "[65:320]"
InputPortWidth "320"
OutputPortSize "[(-2)]"
}
Block {
BlockType Reference
Name "Spectrum\nScope"
Ports [1]
Position [925, 167, 955, 213]
ShowName off
FontName "Arial"
FontSize 8
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "0"
inpFftLenInherit on
FFTlength "1024"
numAvg "5"
DisplayProperties off
AxisGrid off
Memory off
FrameNumber off
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 "-58.7400650989547"
YMax "-16.8045591061689"
YLabel "Magnitude-squared, dB"
LineProperties off
wintypeSpecScope "Hann"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Block {
BlockType Reference
Name "Spectrum\nScope1"
Ports [1]
Position [925, 286, 955, 334]
ShowName off
FontName "Arial"
FontSize 8
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "0"
inpFftLenInherit on
FFTlength "1024"
numAvg "5"
DisplayProperties off
AxisGrid off
Memory off
FrameNumber off
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 "-58.7836659248587"
YMax "-16.8485740939112"
YLabel "Magnitude-squared, dB"
LineProperties off
wintypeSpecScope "Hann"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Block {
BlockType Terminator
Name "Terminator"
Position [30, 383, 40, 397]
Orientation "left"
BackgroundColor "[1.000000, 0.501961, 0.000000]"
NamePlacement "alternate"
ShowName off
}
Block {
BlockType Terminator
Name "Terminator1"
Position [400, 418, 410, 432]
Orientation "left"
BackgroundColor "[1.000000, 0.501961, 0.000000]"
NamePlacement "alternate"
ShowName off
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
DstBlock "Data Payload"
DstPort 1
}
Line {
SrcBlock "General QAM\nModulator\nBaseband"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "IFFT"
SrcPort 1
DstBlock "Add Cyclic\nPrefix"
DstPort 1
}
Line {
SrcBlock "Bit to Integer\nConverter"
SrcPort 1
DstBlock "General QAM\nModulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "Bit to Integer\nConverter1"
SrcPort 1
DstBlock "Terminator"
DstPort 1
}
Line {
SrcBlock "Integer to Bit\nConverter"
SrcPort 1
Points [-5, 0]
Branch {
DstBlock "Bit to Integer\nConverter1"
DstPort 1
}
Branch {
Points [0, -65; 85, 0]
DstBlock "Error Rate\nCalculation"
DstPort 2
}
}
Line {
SrcBlock "General QAM\nDemodulator\nBaseband"
SrcPort 1
DstBlock "Integer to Bit\nConverter"
DstPort 1
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
DstBlock "General QAM\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "Remove\nPilots"
SrcPort 2
DstBlock "Terminator1"
DstPort 1
}
Line {
SrcBlock "Remove\n zero-padding\nand\nreorder"
SrcPort 1
DstBlock "Remove\nPilots"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Remove\n zero-padding\nand\nreorder"
DstPort 1
}
Line {
SrcBlock "FFT"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "Remove Cyclic\nPrefix"
SrcPort 1
DstBlock "FFT"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [5, 0; 0, 80; 10, 0]
Branch {
DstBlock "Multiport\nSelector"
DstPort 1
}
Branch {
DstBlock "Discrete-Time\nScatter Plot\nScope"
DstPort 1
}
}
Line {
SrcBlock "Add Cyclic\nPrefix"
SrcPort 1
Points [40, 0; 0, 80]
Branch {
DstBlock "AWGN\nChannel"
DstPort 1
}
Branch {
DstBlock "Buffer"
DstPort 1
}
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [0, 45]
Branch {
Points [0, 5]
DstBlock "Buffer1"
DstPort 1
}
Branch {
DstBlock "Remove Cyclic\nPrefix"
DstPort 1
}
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 1
Points [150, 0]
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 2
Points [150, 0]
DstBlock "Matrix\nConcatenation"
DstPort 4
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 3
Points [150, 0]
DstBlock "Matrix\nConcatenation"
DstPort 6
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 4
DstBlock "Matrix\nConcatenation"
DstPort 8
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 5
Points [0, -5]
DstBlock "Matrix\nConcatenation"
DstPort 10
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 6
Points [150, 0]
DstBlock "Matrix\nConcatenation"
DstPort 12
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 7
Points [150, 0]
DstBlock "Matrix\nConcatenation"
DstPort 14
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 8
Points [150, 0]
DstBlock "Matrix\nConcatenation"
DstPort 16
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 9
Points [150, 0]
DstBlock "Matrix\nConcatenation"
DstPort 18
}
Line {
SrcBlock "Multiport\nSelector"
SrcPort 10
Points [150, 0]
DstBlock "Matrix\nConcatenation"
DstPort 20
}
Line {
SrcBlock " 1"
SrcPort 1
Points [10, 0; 0, 30]
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [40, 0; 0, 50]
Branch {
Points [0, 25]
Branch {
Points [0, 15]
Branch {
Points [0, 25]
Branch {
Points [0, 40]
Branch {
Points [0, 20]
Branch {
Points [0, 20]
Branch {
Points [0, -70]
DstBlock "Matrix\nConcatenation"
DstPort 19
}
Branch {
Points [125, 0]
DstBlock "Matrix\nConcatenation"
DstPort 17
}
}
Branch {
Points [125, 0]
DstBlock "Matrix\nConcatenation"
DstPort 15
}
}
Branch {
Points [125, 0]
DstBlock "Matrix\nConcatenation"
DstPort 13
}
}
Branch {
DstBlock " 2"
DstPort 1
}
}
Branch {
Points [0, -25]
DstBlock "Matrix\nConcatenation"
DstPort 7
}
}
Branch {
DstBlock " "
DstPort 1
}
}
Branch {
Points [0, -5]
DstBlock "Matrix\nConcatenation"
DstPort 3
}
}
Line {
SrcBlock "Constant3"
SrcPort 1
Points [30, 0]
DstBlock "Matrix\nConcatenation"
DstPort 11
}
Line {
SrcBlock " 2"
SrcPort 1
Points [50, 0]
DstBlock "Matrix\nConcatenation"
DstPort 9
}
Line {
SrcBlock " "
SrcPort 1
Points [45, 0]
DstBlock "Matrix\nConcatenation"
DstPort 5
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "Data Payload"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Bit to Integer\nConverter"
DstPort 1
}
Branch {
Points [0, 80; 85, 0]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "Spectrum\nScope"
DstPort 1
}
Line {
SrcBlock "Buffer1"
SrcPort 1
DstBlock "Spectrum\nScope1"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [10, 0; 0, -85]
DstBlock "Matrix\nConcatenation"
DstPort 21
}
Line {
SrcBlock "Remove\nPilots"
SrcPort 1
Points [-30, 0]
Branch {
DstBlock "Math\nFunction1"
DstPort 1
}
Branch {
Points [-10, 0]
DstBlock "Discrete-Time\nScatter Plot\nScope1"
DstPort 1
}
}
Annotation {
Name "OFDM with 16QAM"
Position [400, 515]
HorizontalAlignment "left"
DropShadow on
FontName "Times New Roman"
FontSize 16
FontWeight "bold"
}
}
}
MatData {
NumRecords 2
DataRecord {
Tag DataTag1
Data " %)30 . 8 8 ( 0 % "
"\" $ ! 0 . , 8 ( ! % \" $ "
"$ 0 0 0 249&5 "
}
DataRecord {
Tag DataTag0
Data " %)30 . 8 8 ( 0 % "
"\" $ ! 0 . , 8 ( ! % \" $ "
"# 0 0 , 1D94 "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -