📄 ofdm_16qam.mdl
字号:
}
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 "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [90, 83, 145, 127]
ShowName off
FontSize 8
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
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 "get(0,'defaultfigureposition');"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope1"
Tag "ScatterPlot"
Ports [1]
Position [90, 133, 145, 177]
ShowName off
FontSize 8
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
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 "get(0,'defaultfigureposition');"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
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 "Spectrum\nScope"
Ports [1]
Position [115, 182, 145, 228]
ShowName off
DialogController "dspdialog.SpectrumScope"
DialogControllerArgs "DataTag2"
FontName "Arial"
FontSize 8
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels "none"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
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"
XLimit "Auto"
YUnits "dB"
XMax "1"
XMin "0"
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 [115, 231, 145, 279]
ShowName off
DialogController "dspdialog.SpectrumScope"
DialogControllerArgs "DataTag3"
FontName "Arial"
FontSize 8
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels "none"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
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"
XLimit "Auto"
YUnits "dB"
XMax "1"
XMin "0"
YMin "-58.7836659248587"
YMax "-16.8485740939112"
YLabel "Magnitude-squared, dB"
LineProperties off
wintypeSpecScope "Hann"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Block {
BlockType Outport
Name "Out1"
Position [175, 48, 205, 62]
FontName "Arial"
FontSize 8
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Buffer1"
SrcPort 1
DstBlock "Spectrum\nScope1"
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 "Spectrum\nScope"
DstPort 1
}
Line {
SrcBlock "In6"
SrcPort 1
DstBlock "Buffer1"
DstPort 1
}
Line {
SrcBlock "In3"
SrcPort 1
DstBlock "Discrete-Time\nScatter Plot\nScope"
DstPort 1
}
Line {
SrcBlock "In4"
SrcPort 1
DstBlock "Discrete-Time\nScatter Plot\nScope1"
DstPort 1
}
Line {
SrcBlock "Error Rate\nCalculation"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Line {
SrcBlock "IQ Demapper"
SrcPort 1
Points [-15, 0]
Branch {
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 4
DataRecord {
Tag DataTag3
Data " %)30 . , 8 ( ! % \" 0 0 "
}
DataRecord {
Tag DataTag2
Data " %)30 . , 8 ( ! % \" 0 0 "
}
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 + -