📄 ofdm_16qam.mdl
字号:
BlockType From
Name "From4"
Position [15, 285, 65, 295]
ShowName off
CloseFcn "tagdialog Close"
FontName "Arial"
FontSize 8
GotoTag "IQ_TX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType From
Name "From5"
Position [15, 315, 65, 325]
ShowName off
CloseFcn "tagdialog Close"
FontName "Arial"
FontSize 8
GotoTag "OFDM_RX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType From
Name "From6"
Position [15, 305, 65, 315]
ShowName off
CloseFcn "tagdialog Close"
FontName "Arial"
FontSize 8
GotoTag "OFDM_TX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto1"
Position [290, 60, 340, 70]
ShowName off
FontName "Arial"
FontSize 8
GotoTag "IQ_TX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [150, 185, 200, 195]
ShowName off
FontName "Arial"
FontSize 8
GotoTag "DATA_RX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto3"
Position [150, 60, 200, 70]
ShowName off
FontName "Arial"
FontSize 8
GotoTag "DATA_TX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto4"
Position [290, 245, 340, 255]
ShowName off
FontName "Arial"
FontSize 8
GotoTag "IQ_RX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto5"
Position [285, 119, 335, 131]
Orientation "left"
ShowName off
FontName "Arial"
FontSize 8
GotoTag "OFDM_TX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto6"
Position [285, 185, 335, 195]
Orientation "left"
ShowName off
FontName "Arial"
FontSize 8
GotoTag "OFDM_RX"
IconDisplay "Signal name"
TagVisibility "global"
}
Block {
BlockType SubSystem
Name "IQ Demapper"
Ports [1, 1]
Position [155, 198, 210, 242]
Orientation "left"
ShowName off
FontSize 8
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskDisplay "disp('IQ Demapper');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "IQ Demapper"
Location [2, 82, 1014, 744]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [15, 33, 45, 47]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "General QAM\nDemodulator\nBaseband"
Ports [1, 1]
Position [175, 14, 250, 66]
SourceBlock "commdigbbndam2/General QAM\nDemodulator\nBaseband"
SourceType "General QAM Demodulator Baseband"
SigCon "[0.3162 + 0.3162i 0.3162 + 0.9487i 0.3162 - 0.3162i 0.3162 - 0.9487i 0.9487 + 0.3162i 0.9487 + 0.9487i 0.9487 - 0.3162i 0.9487 - 0.9487i -0.3162 + 0.3162i -0.3162 + 0.9487i -0.3162 - 0.3162i -0.3162 - 0.9487i -0.9487 + 0.3162i -0.9487 + 0.9487i -0.9487 - 0.3162i -0.9487 - 0.9487i]'"
numSamp "1"
}
Block {
BlockType Reference
Name "Integer to Bit\nConverter"
Ports [1, 1]
Position [300, 18, 380, 62]
SourceBlock "commutil2/Integer to Bit\nConverter"
SourceType "Integer to Bit Converter"
nbits "4"
outDtype "Same as input"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [95, 25, 125, 55]
ShowName off
Operator "conj"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Out"
Position [400, 33, 430, 47]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "General QAM\nDemodulator\nBaseband"
SrcPort 1
DstBlock "Integer to Bit\nConverter"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "General QAM\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "Integer to Bit\nConverter"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "IQ Mapper"
Ports [1, 1]
Position [155, 73, 210, 117]
ShowName off
FontSize 8
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskDisplay "disp('IQ Mapper');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "IQ Mapper"
Location [2, 82, 1014, 744]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [15, 33, 45, 47]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "Bit to Integer\nConverter"
Ports [1, 1]
Position [100, 18, 180, 62]
SourceBlock "commutil2/Bit to Integer\nConverter"
SourceType "Bit to Integer Converter"
nbits "4"
outDtype "Same as input"
}
Block {
BlockType Reference
Name "General QAM\nModulator\nBaseband"
Ports [1, 1]
Position [215, 14, 290, 66]
SourceBlock "commdigbbndam2/General QAM\nModulator\nBaseband"
SourceType "General QAM Modulator Baseband"
SigCon "[0.3162 + 0.3162i 0.3162 + 0.9487i 0.3162 - 0.3162i 0.3162 - 0.9487i 0.9487 + 0.3162i 0.9487 + 0.9487i 0.9487 - 0.3162i 0.9487 - 0.9487i -0.3162 + 0.3162i -0.3162 + 0.9487i -0.3162 - 0.3162i -0.3162 - 0.9487i -0.9487 + 0.3162i -0.9487 + 0.9487i -0.9487 - 0.3162i -0.9487 - 0.9487i]'"
numSamp "1"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [345, 25, 375, 55]
ShowName off
Operator "conj"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "Out"
Position [430, 33, 460, 47]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Bit to Integer\nConverter"
DstPort 1
}
Line {
SrcBlock "General QAM\nModulator\nBaseband"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Bit to Integer\nConverter"
SrcPort 1
DstBlock "General QAM\nModulator\nBaseband"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "OFDM\nData"
Ports [1, 1]
Position [285, 198, 340, 242]
Orientation "left"
ShowName off
FontSize 8
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskDisplay "disp('OFDM \\n Demodulator');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "OFDM\nData"
Location [2, 82, 1014, 744]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [15, 43, 45, 57]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [195, 33, 235, 67]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
InheritFFTLength on
FFTLength "64"
additionalParams off
SkipNorm on
allowOverrides on
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Inherit via internal rule"
outputWordLength "16"
outputFracLength "15"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [285, 34, 330, 66]
SourceBlock "dspobslib/Frame Status\nConversion"
SourceType "Frame Status Conversion"
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"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Selector
Name "Remove\n zero-padding\nand\nreorder"
Ports [1, 1]
Position [380, 28, 430, 72]
InputPortWidth "256"
IndexOptions "Index vector (dialog)"
Indices "[29:128 130:229]"
OutputSizes "1"
}
Block {
BlockType Reference
Name "Remove\nPilots"
Ports [1, 2]
Position [480, 12, 525, 83]
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 [95, 28, 145, 72]
InputPortWidth "320"
IndexOptions "Index vector (dialog)"
Indices "[65:320]"
OutputSizes "1"
}
Block {
BlockType Terminator
Name "Terminator"
Position [590, 58, 600, 72]
BackgroundColor "[1.000000, 0.501961, 0.000000]"
ShowName off
}
Block {
BlockType Outport
Name "Out"
Position [575, 23, 605, 37]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
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 "In"
SrcPort 1
DstBlock "Remove Cyclic\nPrefix"
DstPort 1
}
Line {
SrcBlock "Remove\n zero-padding\nand\nreorder"
SrcPort 1
DstBlock "Remove\nPilots"
DstPort 1
}
Line {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -