📄 ofdm_gito.mdl
字号:
BlockType From
Name "From6"
Position [45, 602, 95, 618]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "real_rx"
}
Block {
BlockType From
Name "From7"
Position [45, 617, 95, 633]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "im_rx"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel"
Ports [1, 1]
Position [905, 250, 985, 290]
Orientation "down"
ShowName off
SourceBlock "commchan2/Multipath Rayleigh\nFading Channel"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels on
Fd "200"
simTs "8e-6/180"
delayVec "[0 3e-6]"
gainVecdB "[0 -8]"
normGain on
Seed "936497248"
}
Block {
BlockType SubSystem
Name "Power Spectrum"
Ports [2]
Position [350, 561, 405, 639]
ShowName off
OpenFcn "temp=get_param(gcb,'On');set_param(gcb,'On', ge"
"t_param(gcb,'Off'));set_param(gcb,'Off', temp);"
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Instrumentation: Power Spectrum"
MaskPromptString "On|Off"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "On=&1;Off=&2;"
MaskInitialization "if strcmp(On,'on')\n [picture, map]=imread('sw"
"itch_on.jpg');\n set_param([gcs '/Power Spectrum/OFDM Transmitted Spectrum']"
",'OpenScopeAtSimStart','on');\n set_param([gcs '/Power Spectrum/OFDM Receive"
"d Spectrum'],'OpenScopeAtSimStart','on');\n sdspfscope2([],[],[],'ScopeUpdat"
"e',[gcs '/Power Spectrum/OFDM Transmitted Spectrum'],'OpenFig');\n sdspfscop"
"e2([],[],[],'ScopeUpdate',[gcs '/Power Spectrum/OFDM Received Spectrum'],'Ope"
"nFig');\n \nelse\n [picture, map]=imread('switch_off.jpg');\n set_param("
"[gcs '/Power Spectrum/OFDM Transmitted Spectrum'],'OpenScopeAtSimStart','off'"
");\n set_param([gcs '/Power Spectrum/OFDM Received Spectrum'],'OpenScopeAtSi"
"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"
MaskTabNameString ","
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]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In3"
Position [30, 118, 60, 132]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "OFDM Received Spectrum"
Ports [1]
Position [165, 100, 200, 150]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
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"
ShowPortLabels off
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 "Subsystem"
Ports [2, 1]
Position [510, 176, 645, 229]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('OFDM Baseband\\nModulator\\ndan\\nAdd Cyc"
"lic Prefix')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem"
Location [-90, 262, 566, 495]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 13, 45, 27]
ShowName off
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In2"
Position [15, 108, 45, 122]
ShowName off
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [155, 99, 190, 131]
ShowName off
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
ShowPortLabels on
Value "0"
SampleMode "Discrete"
discreteOutput "Frame-based"
continuousOutput "Sample-based"
sampTime "16e-5/2"
framePeriod "16e-5/2"
additionalParams off
allowOverrides on
dataType "Inherit from 'Constant value'"
isSigned on
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "off"
Ts "16e-5/2"
FramebasedOutput "on"
}
Block {
BlockType Reference
Name "IFFT"
Ports [1, 1]
Position [450, 89, 490, 121]
ShowName off
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dspxfrm3/IFFT"
SourceType "IFFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
cs_in off
SkipNorm off
mode "Real"
additionalParams off
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 "Matrix\nConcatenation"
Ports [3, 1]
Position [210, 55, 270, 175]
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "3"
catMethod "Vertical"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [300, 84, 355, 126]
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConcatena"
"tion"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Multiport\nSelector"
Ports [1, 2]
Position [70, 35, 130, 195]
ShowName off
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Rows"
idxCellArray "{1:15,16:30}"
idxErrMode "Clip Index"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [515, 74, 580, 136]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('Add\\nCyclic Prefix')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem"
Location [517, 196, 717, 286]
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, 38, 55, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Selector
Name "Selector3"
Ports [1, 1]
Position [80, 26, 120, 64]
InputType "Matrix"
Elements "[51:64,1:64]"
Rows "[39:64,1:64]"
Columns "-1"
InputPortWidth "64"
}
Block {
BlockType Outport
Name "Out1"
Position [145, 38, 175, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Selector3"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Selector3"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [1, 1]
Position [375, 76, 430, 134]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('Zero Pad')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem1"
Location [252, 196, 547, 286]
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, 38, 55, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [165, 26, 215, 64]
InputType "Matrix"
Elements "[16:64,1:15]"
Rows "[16:64,1:15]"
Columns "-1"
InputPortWidth "64"
}
Block {
BlockType Reference
Name "Zero Pad"
Ports [1, 1]
Position [80, 27, 125, 63]
SourceBlock "dspsigops/Zero Pad"
SourceType "Zero Pad"
padSigAt "End"
zpadAlong "Columns and rows"
padNumOutRowsSpecMethod "User-specified"
numOutRows "64"
padNumOutColsSpecMethod "User-specified"
numOutCols "2"
trunc_flag "None"
}
Block {
BlockType Outport
Name "Out1"
Position [240, 38, 270, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Zero Pad"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Zero Pad"
DstPort 1
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -