📄 wifi.mdl
字号:
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [660, 290, 680, 310]
ShowName off
IconShape "round"
Inputs "|+++"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [730, 215, 790, 245]
ShowName off
VariableName "BER"
MaxDataPoints "1"
SampleTime "-1"
SaveFormat "Array"
}
Line {
Name "Preamble BER"
SrcBlock "Preamble Error Rate Calculation"
SrcPort 1
Points [45, 0]
Branch {
Labels [-1, 1]
DstBlock "Display"
DstPort 1
}
Branch {
Points [0, 40]
Branch {
DstBlock "Selector2"
DstPort 1
}
Branch {
Points [0, 25]
DstBlock "Selector4"
DstPort 1
}
}
}
Line {
Name "PSDU BER"
SrcBlock "PSDU Error Rate Calculation"
SrcPort 1
Points [50, 0]
Branch {
Labels [-1, 1]
DstBlock "Display1"
DstPort 1
}
Branch {
Points [0, 45]
Branch {
DstBlock "Selector3"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Selector6"
DstPort 1
}
}
}
Line {
Name "Rx PLCP Preamble"
Labels [-1, 1]
SrcBlock "Demux1"
SrcPort 1
Points [65, 0; 0, -225]
DstBlock "Preamble Error Rate Calculation"
DstPort 2
}
Line {
Name "Tx PLCP Preamble"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 1
DstBlock "Preamble Error Rate Calculation"
DstPort 1
}
Line {
Name "Header BER"
SrcBlock "Header Error Rate Calculation"
SrcPort 1
Points [50, 0]
Branch {
Labels [-1, 1]
DstBlock "Display2"
DstPort 1
}
Branch {
Points [0, 40]
Branch {
DstBlock "Selector1"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Selector5"
DstPort 1
}
}
}
Line {
Name "Rx PSDU"
Labels [-1, 1]
SrcBlock "Demux1"
SrcPort 3
DstBlock "PSDU Error Rate Calculation"
DstPort 2
}
Line {
Name "Tx PSDU"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 3
Points [35, 0; 0, 135; 50, 0; 0, 80]
DstBlock "PSDU Error Rate Calculation"
DstPort 1
}
Line {
Name "Tx PLCP Header"
Labels [-1, 1]
SrcBlock "Demux"
SrcPort 2
Points [50, 0; 0, 110]
DstBlock "Header Error Rate Calculation"
DstPort 1
}
Line {
Name "Rx PLCP Header"
Labels [-1, 1]
SrcBlock "Demux1"
SrcPort 2
Points [75, 0; 0, -110]
DstBlock "Header Error Rate Calculation"
DstPort 2
}
Line {
SrcBlock "Tx Bits"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Rx Bits"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Selector2"
SrcPort 1
Points [130, 0; 0, 80]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Selector1"
SrcPort 1
Points [130, 0; 0, -55]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Selector3"
SrcPort 1
Points [140, 0; 0, -190]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Display3"
DstPort 1
}
Line {
SrcBlock "Selector4"
SrcPort 1
Points [145, 0; 0, 123]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Selector5"
SrcPort 1
Points [149, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Selector6"
SrcPort 1
Points [170, 0]
DstBlock "Sum"
DstPort 3
}
Annotation {
Name "Calculates BERs of each subframe"
Position [393, 518]
BackgroundColor "yellow"
}
}
}
Block {
BlockType SubSystem
Name "Channel"
Ports [1, 1]
Position [410, 203, 495, 277]
AttributesFormatString "%<BlockChoice>"
ShowPortLabels off
BlockChoice "AWGN"
TemplateBlock "WiFi_lib/Channel"
MemberBlocks "AWGN,None"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Channel"
Location [148, 182, 646, 482]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [20, 40, 40, 60]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "AWGN"
Ports [1, 1]
Position [100, 40, 140, 80]
SourceBlock "WiFi_lib/AWGN"
SourceType ""
ShowPortLabels off
}
Block {
BlockType Outport
Name "Out"
Position [200, 40, 220, 60]
IconDisplay "Port number"
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "AWGN"
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
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "Tx_Bits"
Port {
PortNumber 1
Name "Tx PPDU"
PropagatedSignals "PPDU"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType From
Name "From1"
Position [270, 462, 325, 478]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "Rx_Bits"
Port {
PortNumber 1
Name "Rx PPDU"
PropagatedSignals "PPDU"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType From
Name "From2"
Position [555, 392, 615, 408]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "Rx_Signal"
}
Block {
BlockType From
Name "From3"
Position [555, 437, 615, 453]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "Tx_Chips"
}
Block {
BlockType From
Name "From4"
Position [555, 482, 610, 498]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "Rx_Bits"
}
Block {
BlockType From
Name "From5"
Position [15, 418, 120, 432]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "Rx_Signal"
}
Block {
BlockType From
Name "From8"
Position [15, 458, 120, 472]
ShowName off
DialogController "Simulink.DDGSource"
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
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
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
DialogController "Simulink.DDGSource"
GotoTag "Tx_Bits"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto1"
Position [875, 212, 935, 228]
NamePlacement "alternate"
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "Rx_Bits"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [255, 257, 315, 273]
NamePlacement "alternate"
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "Tx_Chips"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto3"
Position [830, 247, 935, 263]
NamePlacement "alternate"
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "Rx_Signal_Aligned"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto4"
Position [570, 262, 650, 278]
NamePlacement "alternate"
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "Rx_Signal"
TagVisibility "global"
}
Block {
BlockType SubSystem
Name "Instrumentation \n(Remove to speed up\nsimulati"
"on)"
Ports [2]
Position [175, 407, 240, 483]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Instrumentation"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Instrumentation \n(Remove to speed up\nsimula"
"tion)"
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"
Port "1"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -