📄 ofdm_16qam.mdl
字号:
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "Add Cyclic\nPrefix"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [6, 1]
Position [90, 263, 145, 327]
ShowName off
FontName "Arial"
FontSize 8
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('System\\nPerformance\\nTests');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem"
Location [2, 82, 1014, 721]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "206"
Block {
BlockType Inport
Name "In1"
Position [15, 38, 45, 52]
FontSize 8
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In2"
Position [15, 68, 45, 82]
FontSize 8
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In3"
Position [15, 98, 45, 112]
FontSize 8
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In4"
Position [15, 148, 45, 162]
FontSize 8
Port "4"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In5"
Position [15, 198, 45, 212]
FontSize 8
Port "5"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In6"
Position [15, 248, 45, 262]
FontSize 8
Port "6"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [70, 192, 90, 218]
ShowName off
FontName "Arial"
FontSize 8
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "256"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Buffer1"
Ports [1, 1]
Position [70, 242, 90, 268]
ShowName off
FontName "Arial"
FontSize 8
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "256"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [90, 33, 145, 77]
ShowName off
FontSize 8
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "grayBER"
RsMode2 off
stop on
numErr "1000000000"
maxBits "10000000"
}
Block {
BlockType Reference
Name "发射端的信号"
Ports [1]
Position [115, 182, 145, 228]
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 "发射端的映射图形"
Tag "ScatterPlot"
Ports [1]
Position [90, 83, 145, 127]
Diagnostics "AllowInheritedTsInSrc"
FontSize 8
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScop"
"e"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels on
sampPerSymb "1"
offsetEye "0"
numTraces "64"
numNewFrames "64"
LineMarkers "."
LineColors "b"
fading on
render on
AxisGrid on
xMin "-1.04357"
xMax "1.0483135"
yMin "-1.04357"
yMax "1.0483135"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
FrameNumber off
FigPos "[232 106 560 560]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Reference
Name "接收端的信号"
Ports [1]
Position [215, 231, 245, 279]
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 Reference
Name "接收端的映射图形"
Tag "ScatterPlot"
Ports [1]
Position [195, 133, 250, 177]
Diagnostics "AllowInheritedTsInSrc"
FontSize 8
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScop"
"e"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels on
sampPerSymb "1"
offsetEye "0"
numTraces "64"
numNewFrames "64"
LineMarkers "."
LineColors "b"
fading on
render on
AxisGrid on
xMin "-1.04739264786426"
xMax "1.05223920685003"
yMin "-1.04691761829795"
yMax "1.05271423641634"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
FrameNumber off
FigPos "[232 106 560 560]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Outport
Name "Out1"
Position [175, 48, 205, 62]
FontName "Arial"
FontSize 8
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Buffer1"
SrcPort 1
DstBlock "接收端的信号"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
Points [25, 0]
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Line {
SrcBlock "In5"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "发射端的信号"
DstPort 1
}
Line {
SrcBlock "In6"
SrcPort 1
DstBlock "Buffer1"
DstPort 1
}
Line {
SrcBlock "In3"
SrcPort 1
DstBlock "发射端的映射图形"
DstPort 1
}
Line {
SrcBlock "In4"
SrcPort 1
DstBlock "接收端的映射图形"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Line {
SrcBlock "IQ Demapper"
SrcPort 1
Points [-15, 0]
Branch {
Points [-40, 0]
DstBlock "Data to MAC"
DstPort 1
}
Branch {
DstBlock "Goto2"
DstPort 1
}
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [0, 5]
Branch {
DstBlock "OFDM\nData"
DstPort 1
}
Branch {
DstBlock "Goto6"
DstPort 1
}
}
Line {
SrcBlock "OFDM\nData"
SrcPort 1
Points [-5, 0]
Branch {
DstBlock "IQ Demapper"
DstPort 1
}
Branch {
DstBlock "Goto4"
DstPort 1
}
}
Line {
SrcBlock "OFDM\nSymbols"
SrcPort 1
Points [10, 0; 0, 30]
Branch {
DstBlock "AWGN\nChannel"
DstPort 1
}
Branch {
DstBlock "Goto5"
DstPort 1
}
}
Line {
SrcBlock "IQ Mapper"
SrcPort 1
Points [55, 0]
Branch {
DstBlock "OFDM\nSymbols"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "Goto1"
DstPort 1
}
}
Line {
SrcBlock "From2"
SrcPort 1
DstBlock "Subsystem"
DstPort 1
}
Line {
SrcBlock "From3"
SrcPort 1
DstBlock "Subsystem"
DstPort 2
}
Line {
SrcBlock "From4"
SrcPort 1
DstBlock "Subsystem"
DstPort 3
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Subsystem"
DstPort 4
}
Line {
SrcBlock "From6"
SrcPort 1
DstBlock "Subsystem"
DstPort 5
}
Line {
SrcBlock "From5"
SrcPort 1
DstBlock "Subsystem"
DstPort 6
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
SrcBlock "Data From MAC"
SrcPort 1
Points [60, 0]
Branch {
DstBlock "IQ Mapper"
DstPort 1
}
Branch {
DstBlock "Goto3"
DstPort 1
}
}
Annotation {
Name "OFDM with 16QAM"
Position [105, 30]
HorizontalAlignment "left"
DropShadow on
FontName "Times New Roman"
FontSize 16
FontWeight "bold"
}
Annotation {
Name "Total Bits"
Position [301, 307]
HorizontalAlignment "left"
FontName "Arial"
FontSize 8
}
Annotation {
Name "Bit Loss"
Position [300, 290]
HorizontalAlignment "left"
FontName "Arial"
FontSize 8
}
Annotation {
Name "Packet Loss"
Position [299, 274]
HorizontalAlignment "left"
FontName "Arial"
FontSize 8
}
}
}
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 + -