📄 cofdm.mdl
字号:
"mStart','off');\n sdspfscope2([],[],[],'ScopeUpdate',[gcs '/Power Spectrum/O"
"FDM Transmitted Spectrum'],'CloseFig');\n sdspfscope2([],[],[],'ScopeUpdate'"
",[gcs '/Power Spectrum/OFDM Received Spectrum'],'CloseFig');\n \nend"
MaskDisplay "image(picture,'center')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "off|on"
System {
Name "Power Spectrum"
Location [139, 235, 450, 414]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 38, 60, 52]
}
Block {
BlockType Inport
Name "In3"
Position [30, 118, 60, 132]
Port "2"
}
Block {
BlockType Reference
Name "OFDM Received Spectrum"
Ports [1]
Position [165, 100, 200, 150]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "90"
Overlap "0"
inpFftLenInherit on
FFTlength "1024"
numAvg "16"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart off
OpenScopeImmediately off
FigPos "[516 326 489 207]"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-56.109120379899"
YMax "-11.668971465058"
YLabel "Magnitude, dB"
LineProperties off
}
Block {
BlockType Reference
Name "OFDM Transmitted Spectrum"
Ports [1]
Position [170, 20, 205, 70]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "90"
Overlap "0"
inpFftLenInherit on
FFTlength "1024"
numAvg "16"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart off
OpenScopeImmediately off
FigPos "[16 327 493 204]"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-109.63726086101"
YMax "-10.5147246232599"
YLabel "Magnitude, dB"
LineProperties off
LineStyles "-"
LineColors "[0 0 0]"
}
Line {
SrcBlock "In3"
SrcPort 1
DstBlock "OFDM Received Spectrum"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "OFDM Transmitted Spectrum"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Remove\n Zero"
Ports [1, 1]
Position [345, 345, 410, 405]
Orientation "left"
BackgroundColor "lightBlue"
ShowName off
TreatAsAtomicUnit off
MaskDisplay "disp('Remove\\nZero');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Remove\n Zero"
Location [2, 82, 989, 722]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [585, 123, 615, 137]
Orientation "left"
}
Block {
BlockType Goto
Name "Goto"
Position [505, 294, 625, 326]
ShowName off
GotoTag "constellation_after"
TagVisibility "global"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [475, 111, 515, 149]
Orientation "left"
ShowName off
InputType "Matrix"
Elements "[1:15,17:31]"
Rows "[1:15,17:31]"
Columns "-1"
InputPortWidth "31"
}
Block {
BlockType Outport
Name "Out1"
Position [375, 128, 405, 142]
Orientation "left"
}
Line {
SrcBlock "Selector2"
SrcPort 1
Points [-25, 0; 0, 5; -5, 0]
Branch {
DstBlock "Out1"
DstPort 1
}
Branch {
Points [0, 175]
DstBlock "Goto"
DstPort 1
}
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Selector2"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "S/P"
Ports [1, 1]
Position [835, 355, 875, 415]
Orientation "left"
BackgroundColor "lightBlue"
ShowName off
TreatAsAtomicUnit off
MaskDisplay "disp('S/P')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "S/P"
Location [607, 432, 942, 634]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [175, 43, 205, 57]
Orientation "left"
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [80, 25, 130, 75]
Orientation "left"
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "180"
V "0"
ic "0"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [170, 133, 200, 162]
Output "Real and imag"
}
Block {
BlockType Goto
Name "Goto"
Position [170, 90, 255, 110]
GotoTag "spectrum_rx"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto1"
Position [225, 120, 310, 140]
GotoTag "real_rx"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [225, 155, 310, 175]
GotoTag "imag_rx"
TagVisibility "global"
}
Block {
BlockType Outport
Name "Out1"
Position [25, 43, 55, 57]
Orientation "left"
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0; -15, 0]
Branch {
Points [0, 50]
Branch {
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
Branch {
DstBlock "Goto"
DstPort 1
}
}
Branch {
DstBlock "Buffer"
DstPort 1
}
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
Points [0, -10]
DstBlock "Goto1"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
Points [5, 0]
DstBlock "Goto2"
DstPort 1
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Display
Name "SER"
Ports [1]
Position [380, 231, 490, 299]
ShowName off
Decimation "1"
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [0, 1]
Position [385, 79, 440, 121]
BackgroundColor "red"
ShowName off
TreatAsAtomicUnit off
MaskDisplay "disp('Training');\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem1"
Location [102, 89, 420, 216]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [25, 28, 105, 72]
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 0 0 0 0 1 1]"
ini_sta "[0 0 0 0 0 1]"
shift "0"
Ts "16e-5/31/2"
frameBased on
sampPerFrame "31"
reset off
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter"
Ports [1, 1]
Position [145, 26, 225, 74]
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
M "2"
polarity "Positive"
}
Block {
BlockType Outport
Name "Out1"
Position [250, 43, 280, 57]
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem11"
Ports [1, 1]
Position [120, 128, 220, 182]
BackgroundColor "lightBlue"
ShowName off
TreatAsAtomicUnit off
MaskDisplay "disp('RS(15,11) Encoder')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem11"
Location [77, 218, 327, 314]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 43, 55, 57]
}
Block {
BlockType Reference
Name "Binary-Input\nRS Encoder"
Ports [1, 1]
Position [90, 28, 170, 72]
ShowName off
SourceBlock "commblkcod2/Binary-Input\nRS Encoder"
SourceType "Binary-Input RS Encoder"
n "15"
k "11"
specPrimPoly off
primPoly "[1 0 1 1]"
specGenPoly off
genPoly "rsgenpoly(7,3)"
}
Block {
BlockType Outport
Name "Out1"
Position [195, 43, 225, 57]
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Binary-Input\nRS Encoder"
DstPort 1
}
Line {
SrcBlock "Binary-Input\nRS Encoder"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem12"
Ports [1, 1]
Position [50, 252, 145, 308]
BackgroundColor "lightBlue"
ShowName off
TreatAsAtomicUnit off
MaskDisplay "disp('RS(15,11) Decoder')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem12"
Location [485, 379, 725, 533]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [185, 43, 215, 57]
Orientation "left"
}
Block {
BlockType Reference
Name "Binary-Output\nRS Decoder"
Ports [1, 2]
Posi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -