📄 wifi.mdl
字号:
DstPort 1
}
Line {
SrcBlock "AWGN"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Display
Name "Chip rate"
Ports [1]
Position [840, 432, 930, 458]
Decimation "1"
}
Block {
BlockType From
Name "From"
Position [270, 416, 325, 434]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Tx_Bits"
Port {
PortNumber 1
Name "Tx PPDU"
PropagatedSignals "PPDU"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType From
Name "From1"
Position [270, 462, 325, 478]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Rx_Bits"
Port {
PortNumber 1
Name "Rx PPDU"
PropagatedSignals "PPDU"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType From
Name "From2"
Position [555, 392, 615, 408]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Rx_Signal"
}
Block {
BlockType From
Name "From3"
Position [555, 437, 615, 453]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Tx_Chips"
}
Block {
BlockType From
Name "From4"
Position [555, 482, 610, 498]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Rx_Bits"
}
Block {
BlockType From
Name "From5"
Position [15, 418, 120, 432]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Rx_Signal"
}
Block {
BlockType From
Name "From8"
Position [15, 458, 120, 472]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Rx_Signal_Aligned"
}
Block {
BlockType SubSystem
Name "Global Variables1"
Ports []
Position [705, 48, 800, 100]
BackgroundColor "yellow"
ShowName off
TreatAsAtomicUnit off
MaskDisplay "disp('Info')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Global Variables1"
Location [172, 208, 744, 546]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Name "Implements: IEEE Std 802.11b-1999 PHY\n(Sup"
"plement to ANSI/IEEE Std 802.11, 1999 Edition)\nAvailable from: http://standa"
"rds.ieee.org/reading/ieee/std/lanman/\n\nSystem Parameters: Double click bloc"
"k to display and set\n\n* Mode/Data Rate: Choose from 1Mpbs, 2Mbps, 5.5Mbps o"
"r 11Mbps\n* Packet size: 1-4095 Bytes\n* Use short preamble: An option for 2,"
" 5.5 or 11Mbps options only\n* Channel number: Select from 1 to 11\n* Channel"
" type: None or AWGN\n* EsNo: Channel noise power for AWGN option\n"
Position [89, 169]
HorizontalAlignment "left"
FontName "Arial"
FontSize 12
}
}
}
Block {
BlockType Goto
Name "Goto"
Position [255, 207, 315, 223]
NamePlacement "alternate"
ShowName off
GotoTag "Tx_Bits"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto1"
Position [875, 212, 935, 228]
NamePlacement "alternate"
ShowName off
GotoTag "Rx_Bits"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [255, 257, 315, 273]
NamePlacement "alternate"
ShowName off
GotoTag "Tx_Chips"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto3"
Position [830, 247, 935, 263]
NamePlacement "alternate"
ShowName off
GotoTag "Rx_Signal_Aligned"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto4"
Position [570, 262, 650, 278]
NamePlacement "alternate"
ShowName off
GotoTag "Rx_Signal"
TagVisibility "global"
}
Block {
BlockType SubSystem
Name "Instrumentation"
Ports [2]
Position [175, 407, 240, 483]
OpenFcn "temp=get_param(gcb,'On');set_param(gcb,'On', ge"
"t_param(gcb,'Off'));set_param(gcb,'Off', temp);"
TreatAsAtomicUnit on
MaskType "Instrumentation"
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=imread('Switch_On"
".jpg');\n set_param([gcb,'/State'],'Value','1');\nelse\n picture=imread('Sw"
"itch_Off.jpg');\n set_param([gcb,'/State'],'Value','0');\nend\n"
MaskDisplay "image(picture,'center')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "off|on"
System {
Name "Instrumentation"
Location [131, 134, 692, 587]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Rx Signal"
Position [60, 198, 90, 212]
NamePlacement "alternate"
}
Block {
BlockType Inport
Name "Rx Signal Aligned"
Position [60, 333, 90, 347]
NamePlacement "alternate"
Port "2"
}
Block {
BlockType Constant
Name "State"
Position [240, 45, 270, 75]
Value "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 0, 1]
Position [215, 136, 455, 409]
TreatAsAtomicUnit on
System {
Name "Subsystem"
Location [171, 179, 750, 639]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Rx Signal "
Position [75, 123, 105, 137]
}
Block {
BlockType Inport
Name "Rx Signal aligned\nto Chip boundary"
Position [75, 243, 105, 257]
Port "2"
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [250, 30, 270, 50]
}
Block {
BlockType Reference
Name "Discrete-Time\nEye Diagram\nScope"
Tag "EyeDiagram"
Ports [1]
Position [370, 226, 415, 274]
SourceBlock "commsink2/Discrete-Time\nEye Diagram\nS"
"cope"
SourceType "Discrete-Time Eye Diagram Scope"
showPlotting off
sampPerSymb "8"
offsetEye "0"
symbPerTrace "1"
numTraces "40"
numNewFrames "40"
showRendering off
LineStyles "-"
LineColors "b"
dupPoints on
fading on
render on
AxisGrid off
showAxes off
yMin "-1.38526904502056"
yMax "1.38777979583567"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
showFigure on
openScopeAtSimStart on
dispDiagram "In-phase and Quadrature"
FrameNumber off
FigPos "[22 40 434 377]"
figTitle "Rx Signal"
block_type_ "eye"
numLinesMax "8"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [365, 355, 410, 405]
SourceBlock "commsink2/Discrete-Time\nScatter Plot\n"
"Scope"
SourceType "Discrete-Time Scatter Plot Scope"
showPlotting on
sampPerSymb "8"
offsetEye "0"
numTraces "100"
numNewFrames "100"
showRendering off
LineMarkers "."
LineColors "b"
fading on
render on
AxisGrid on
showAxes off
xMin "-1"
xMax "1"
yMin "-1"
yMax "1"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
showFigure off
openScopeAtSimStart on
FrameNumber off
FigPos "[556 40 356 359]"
figTitle "Rx Chips"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType Reference
Name "Spectrum\nScope"
Ports [1]
Position [380, 105, 415, 155]
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "1024"
Overlap "0"
inpFftLenInherit on
FFTlength "1024"
numAvg "5"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[23 469 431 222]"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-20.2099642477694"
YMax "13.0534015069536"
YLabel "Magnitude, dB"
LineProperties off
LineStyles "--"
}
Line {
SrcBlock "Rx Signal aligned\nto Chip boundary"
SrcPort 1
Points [60, 0]
Branch {
Points [0, 130]
DstBlock "Discrete-Time\nScatter Plot\nScope"
DstPort 1
}
Branch {
DstBlock "Discrete-Time\nEye Diagram\nScope"
DstPort 1
}
}
Line {
SrcBlock "Rx Signal "
SrcPort 1
DstBlock "Spectrum\nScope"
DstPort 1
}
}
}
Line {
SrcBlock "State"
SrcPort 1
Points [60, 0]
DstBlock "Subsystem"
DstPort enable
}
Line {
SrcBlock "Rx Signal Aligned"
SrcPort 1
DstBlock "Subsystem"
DstPort 2
}
Line {
SrcBlock "Rx Signal"
SrcPort 1
DstBlock "Subsystem"
DstPort 1
}
}
}
Block {
BlockType Display
Name "PSDU data rate"
Ports [1]
Position [840, 477, 930, 503]
Decimation "1"
}
Block {
BlockType SubSystem
Name "Receiver"
Ports [1, 2]
Position [665, 200, 785, 275]
TreatAsAtomicUnit off
System {
Name "Receiver"
Location [10, 270, 1008, 561]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Rx Signal"
Position [20, 133, 50, 147]
}
Block {
BlockType SubSystem
Name "Deframing"
Ports [1, 1]
Position [840, 102, 925, 178]
TreatAsAtomicUnit off
Port {
PortNumber 1
Name "PSDU"
PropagatedSignals "PSDU"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "Deframing"
Location [291, 248, 789, 599]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -