?? ofdm_gito.mdl
字號:
LineMarkers "."
LineColors "b"
fading on
render off
AxisGrid on
showAxes off
xMin "-1.38590807368272"
xMax "1.18815068657491"
yMin "-1.28146244316"
yMax "1.29259631709763"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
showFigure off
openScopeAtSimStart off
FrameNumber off
FigPos "[443 257 328 328]"
figTitle "Scatter Plot"
numLinesMax "50"
block_type_ "scatter"
}
Block {
BlockType Reference
Name "Before Channel Estimation"
Tag "ScatterPlot"
Ports [1]
Position [135, 15, 180, 65]
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScop"
"e"
SourceType "Discrete-Time Scatter Plot Scope"
showPlotting on
sampPerSymb "1"
offsetEye "0"
numTraces "100"
numNewFrames "50"
showRendering off
LineMarkers "."
LineColors "[1 0 0]"
fading on
render off
AxisGrid on
showAxes off
xMin "-3.00315520547955"
xMax "2.96563413273983"
yMin "-2.96784165209088"
yMax "3.00094768612849"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
showFigure off
openScopeAtSimStart off
FrameNumber off
FigPos "[114 264 320 320]"
figTitle "Scatter Plot"
numLinesMax "50"
block_type_ "scatter"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Before Channel Estimation"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "After Channel Estimation"
DstPort 1
}
}
}
Block {
BlockType DigitalClock
Name "Digital Clock"
Position [695, 577, 755, 593]
ShowName off
SampleTime "8e-5"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [210, 288, 295, 352]
ShowName off
Decimation "1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [545, 287, 630, 353]
ShowName off
Decimation "1"
}
Block {
BlockType Display
Name "Display2"
Ports [1]
Position [780, 573, 855, 597]
ShowName off
FontSize 9
Decimation "1"
}
Block {
BlockType From
Name "From"
Position [45, 572, 95, 588]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "real_tx"
}
Block {
BlockType From
Name "From1"
Position [45, 588, 95, 602]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "im_tx"
}
Block {
BlockType From
Name "From2"
Position [215, 570, 325, 590]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "spektrum_kirim"
}
Block {
BlockType From
Name "From3"
Position [215, 611, 325, 629]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "spektrum_terima"
}
Block {
BlockType From
Name "From4"
Position [445, 570, 535, 590]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "konstelasi_sbl"
}
Block {
BlockType From
Name "From5"
Position [445, 610, 535, 630]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "konstelasi_stl"
}
Block {
BlockType From
Name "From6"
Position [45, 602, 95, 618]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "real_rx"
}
Block {
BlockType From
Name "From7"
Position [45, 617, 95, 633]
ShowName off
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"
Fd "200"
simTs "8e-5/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
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"
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 "Subsystem"
Ports [2, 1]
Position [510, 176, 645, 229]
ShowName off
TreatAsAtomicUnit off
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
}
Block {
BlockType Inport
Name "In2"
Position [15, 108, 45, 122]
ShowName off
Port "2"
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [155, 99, 190, 131]
ShowName off
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
Value "0"
SampleMode "Discrete"
discreteOutput "Frame-based"
continuousOutput "Sample-based"
sampTime "16e-5/2"
framePeriod "16e-5/2"
additionalParams off
dataType "Inherit from 'Constant value'"
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
SourceBlock "dspxfrm3/IFFT"
SourceType "IFFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
cs_in off
SkipNorm off
mode "Real"
}
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
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]
}
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]
}
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]
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -