?? ofdmmodulate.mdl
字號:
HorizSpan "1"
UseBuffer on
BufferSize "128"
Overlap "64"
inpFftLenInherit on
FFTlength "1024"
numAvg "2"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber off
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[235 96 560 420]"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-62.178915412863"
YMax "18.2539548238998"
YLabel "Magnitude, dB"
LineProperties on
LineDisables "on|off|off|off|off|off|off|off|off|off|off|off|"
"off|off|off|off|off|off|off|off"
LineMarkers "x"
LineColors "[1 0 0]"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [300, 140, 340, 200]
BackgroundColor "lightBlue"
DropShadow on
ShowName off
TreatAsAtomicUnit off
MaskDisplay "disp('IFFT')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem"
Location [393, 148, 906, 280]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 53, 55, 67]
}
Block {
BlockType Reference
Name "IFFT"
Ports [1, 1]
Position [280, 44, 320, 76]
ShowName off
SourceBlock "dspxfrm3/IFFT"
SourceType "IFFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
cs_in off
SkipNorm off
mode "Complex"
}
Block {
BlockType Gain
Name "Normalize"
Position [370, 45, 400, 75]
Gain "sqrt(1024)"
}
Block {
BlockType Selector
Name "Shift for FFT"
Ports [1, 1]
Position [175, 38, 225, 82]
InputType "Matrix"
Elements "[27:64 1:26]"
Rows "[900/2+1:1024 1:900/2]"
Columns "-1"
InputPortWidth "64"
}
Block {
BlockType Outport
Name "Out1"
Position [455, 53, 485, 67]
}
Line {
SrcBlock "IFFT"
SrcPort 1
DstBlock "Normalize"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Shift for FFT"
DstPort 1
}
Line {
SrcBlock "Shift for FFT"
SrcPort 1
DstBlock "IFFT"
DstPort 1
}
Line {
SrcBlock "Normalize"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [465, 368, 485, 457]
ShowName off
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType ToFile
Name "To File1"
Position [600, 338, 690, 372]
Filename "rxerror.mat"
MatrixName "rxerror"
}
Block {
BlockType SubSystem
Name "Transform to\nfrequency domain"
Ports [1, 1]
Position [290, 274, 335, 306]
Orientation "left"
BackgroundColor "lightBlue"
DropShadow on
ShowName off
TreatAsAtomicUnit off
MaskDisplay "disp('FFT')\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Transform to\nfrequency domain"
Location [351, 559, 787, 675]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in"
Position [25, 38, 55, 52]
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [110, 28, 150, 62]
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [275, 29, 320, 61]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Gain
Name "Normalize"
Position [195, 33, 225, 57]
Gain "1/sqrt(1024)"
}
Block {
BlockType Outport
Name "out"
Position [365, 38, 395, 52]
}
Line {
SrcBlock "FFT"
SrcPort 1
DstBlock "Normalize"
DstPort 1
}
Line {
SrcBlock "Normalize"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "in"
SrcPort 1
DstBlock "FFT"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "cyclic prefix"
Ports [1, 1]
Position [400, 150, 460, 190]
BackgroundColor "lightBlue"
DropShadow on
ShowName off
TreatAsAtomicUnit off
MaskDisplay "disp('Append\\nCyclic\\nPrefix')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "cyclic prefix"
Location [482, 364, 770, 480]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in"
Position [25, 38, 55, 52]
}
Block {
BlockType Selector
Name "Add Cyclic\nPrefix"
Ports [1, 1]
Position [105, 31, 155, 59]
InputType "Matrix"
Elements "[49:64 1:64]"
Rows "[1024-[128-1:-1:0] 1:1024]"
Columns "-1"
InputPortWidth "64"
}
Block {
BlockType Outport
Name "out"
Position [210, 38, 240, 52]
}
Line {
SrcBlock "Add Cyclic\nPrefix"
SrcPort 1
DstBlock "out"
DstPort 1
}
Line {
SrcBlock "in"
SrcPort 1
DstBlock "Add Cyclic\nPrefix"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "remove cyclic prefix"
Ports [1, 1]
Position [385, 274, 440, 316]
Orientation "left"
BackgroundColor "lightBlue"
DropShadow on
ShowName off
TreatAsAtomicUnit off
MaskDisplay "disp('Remove\\nCyclic\\nPrefix')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "remove cyclic prefix"
Location [100, 317, 452, 418]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 33, 55, 47]
}
Block {
BlockType Selector
Name "Remove\ncyclic prefix"
Ports [1, 1]
Position [110, 28, 160, 52]
InputType "Matrix"
Elements "[17:80]"
Rows "[128+1:1152]"
Columns "-1"
InputPortWidth "80"
}
Block {
BlockType Outport
Name "Out1"
Position [215, 33, 245, 47]
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Remove\ncyclic prefix"
DstPort 1
}
Line {
SrcBlock "Remove\ncyclic prefix"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Line {
SrcBlock "Multiplex1"
SrcPort 1
DstBlock "Goto2"
DstPort 1
}
Line {
SrcBlock "Transform to\nfrequency domain"
SrcPort 1
Points [-15, 0]
Branch {
DstBlock "Select symbols"
DstPort 1
}
Branch {
DstBlock "Estimate \nmagnitude response"
DstPort 1
}
}
Line {
SrcBlock "Estimate \nmagnitude response"
SrcPort 1
DstBlock "Goto5"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Rectangular QAM\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "Rectangular QAM\nDemodulator\nBaseband"
SrcPort 1
DstBlock "Goto1"
DstPort 1
}
Line {
SrcBlock "Rectangular QAM\nModulator\nBaseband"
SrcPort 1
DstBlock "Goto6"
DstPort 1
}
Line {
SrcBlock "From4"
SrcPort 1
DstBlock "Reshape2"
DstPort 1
}
Line {
SrcBlock "Reshape2"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "From5"
SrcPort 1
DstBlock "Reshape1"
DstPort 1
}
Line {
SrcBlock "Reshape1"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "cyclic prefix"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Multiplex"
DstPort 1
}
Branch {
Points [0, -130]
DstBlock "Reshape3"
DstPort 1
}
}
Line {
SrcBlock "Demultiplex"
SrcPort 1
DstBlock "remove cyclic prefix"
DstPort 1
}
Line {
SrcBlock "remove cyclic prefix"
SrcPort 1
Points [-30, 0]
DstBlock "Transform to\nfrequency domain"
DstPort 1
}
Line {
SrcBlock "Group into\nOFDM symbols"
SrcPort 1
DstBlock "Subsystem"
DstPort 1
}
Line {
SrcBlock "Select symbols"
SrcPort 1
DstBlock "Multiplex1"
DstPort 1
}
Line {
SrcBlock "Multiplex"
SrcPort 1
Points [15, 0]
DstBlock "AWGN\nChannel"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "cyclic prefix"
DstPort 1
}
Line {
SrcBlock "Reshape3"
SrcPort 1
DstBlock "Spectrum\nScope"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [0, 35]
DstBlock "Demultiplex"
DstPort 1
}
Line {
SrcBlock "From21"
SrcPort 1
DstBlock "Group into\nOFDM symbols"
DstPort 1
}
Line {
SrcBlock "Bernoulli Binary\nGenerator"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Rectangular QAM\nModulator\nBaseband"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Goto4"
DstPort 1
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -