📄 ofdm_gito.mdl
字号:
yMax "1.29259631709763"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
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"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
sampPerSymb "1"
offsetEye "0"
numTraces "100"
numNewFrames "50"
LineMarkers "."
LineColors "[1 0 0]"
fading on
render off
AxisGrid on
xMin "-3.00315520547955"
xMax "2.96563413273983"
yMin "-2.96784165209088"
yMax "3.00094768612849"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
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"
Lockdown off
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [545, 287, 630, 353]
ShowName off
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display2"
Ports [1]
Position [780, 573, 855, 597]
ShowName off
FontSize 9
Decimation "1"
Lockdown off
}
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"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
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
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
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('s"
"witch_on.jpg');\n set_param([gcs '/Power Spectrum/OFDM Transmitted Spectrum'"
"],'OpenScopeAtSimStart','on');\n set_param([gcs '/Power Spectrum/OFDM Receiv"
"ed Spectrum'],'OpenScopeAtSimStart','on');\n sdspfscope2([],[],[],'ScopeUpda"
"te',[gcs '/Power Spectrum/OFDM Transmitted Spectrum'],'OpenFig');\n sdspfsco"
"pe2([],[],[],'ScopeUpdate',[gcs '/Power Spectrum/OFDM Received Spectrum'],'Op"
"enFig');\n \nelse\n %[picture, map]=imread('switch_off.jpg');\n set_para"
"m([gcs '/Power Spectrum/OFDM Transmitted Spectrum'],'OpenScopeAtSimStart','of"
"f');\n set_param([gcs '/Power Spectrum/OFDM Received Spectrum'],'OpenScopeAt"
"SimStart','off');\n sdspfscope2([],[],[],'ScopeUpdate',[gcs '/Power Spectrum"
"/OFDM Transmitted Spectrum'],'CloseFig');\n sdspfscope2([],[],[],'ScopeUpdat"
"e',[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"
TiledPaperMargins [0.196850, 0.196850, 0.196850, 0.196850]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 38, 60, 52]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In3"
Position [30, 118, 60, 132]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "OFDM Received Spectrum"
Ports [1]
Position [165, 100, 200, 150]
DialogController "dspdialog.SpectrumScope"
DialogControllerArgs "DataTag1"
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
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"
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"
XLimit "Auto"
YUnits "dB"
XMax "1"
XMin "0"
YMin "-56.109120379899"
YMax "-11.668971465058"
YLabel "Magnitude, dB"
LineProperties off
wintypeSpecScope "Hann"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Block {
BlockType Reference
Name "OFDM Transmitted Spectrum"
Ports [1]
Position [170, 20, 205, 70]
DialogController "dspdialog.SpectrumScope"
DialogControllerArgs "DataTag2"
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
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"
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"
XLimit "Auto"
YUnits "dB"
XMax "1"
XMin "0"
YMin "-109.63726086101"
YMax "-10.5147246232599"
YLabel "Magnitude, dB"
LineProperties off
LineStyles "-"
LineColors "[0 0 0]"
wintypeSpecScope "Hann"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
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
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents 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"
TiledPaperMargins [0.196850, 0.196850, 0.196850, 0.196850]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 13, 45, 27]
ShowName off
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In2"
Position [15, 108, 45, 122]
ShowName off
Port "2"
IconDisplay "Port number"
}
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"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -