📄 bluetooth_lib2.mdl
字号:
d "0.0005"
fc "2400"
}
Block {
BlockType Reference
Name "802 Path Loss5"
Ports [1, 1]
Position [470, 395, 530, 435]
ShowName off
AttributesFormatString "Distance: %<d>km"
SourceBlock "commrflib2/Free Space\nPath Loss"
SourceType "Free Space Path Loss"
mode "Distance and Frequency"
dB "10"
d "0.001"
fc "2400"
}
Block {
BlockType Reference
Name "AWGN\nChannel1"
Ports [1, 1]
Position [170, 49, 250, 91]
ShowName off
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "awgn_channel_seed"
noiseMode "Signal to noise ratio (Es/No)"
EsNodB "EsNo"
SNRdB "10"
Ps "0.001"
Tsym "1e-6"
variance "1"
}
Block {
BlockType Reference
Name "AWGN\nChannel2"
Ports [1, 1]
Position [170, 459, 250, 501]
ShowName off
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "awgn_channel_seed"
noiseMode "Signal to noise ratio (Es/No)"
EsNodB "EsNo"
SNRdB "10"
Ps "0.001"
Tsym "1e-6"
variance "1"
}
Block {
BlockType Reference
Name "BT Path Loss1"
Ports [1, 1]
Position [345, 460, 405, 500]
AttributesFormatString "Distance: %<d>km"
SourceBlock "commrflib2/Free Space\nPath Loss"
SourceType "Free Space Path Loss"
mode "Distance and Frequency"
dB "10"
d "0.001"
fc "2400"
}
Block {
BlockType Reference
Name "BT Path Loss2"
Ports [1, 1]
Position [350, 305, 410, 345]
ShowName off
AttributesFormatString "Distance: %<d>km"
SourceBlock "commrflib2/Free Space\nPath Loss"
SourceType "Free Space Path Loss"
mode "Distance and Frequency"
dB "10"
d "0.0005"
fc "2400"
}
Block {
BlockType Reference
Name "BT Path Loss3"
Ports [1, 1]
Position [345, 210, 405, 250]
ShowName off
AttributesFormatString "Distance: %<d>km"
SourceBlock "commrflib2/Free Space\nPath Loss"
SourceType "Free Space Path Loss"
mode "Distance and Frequency"
dB "10"
d "0.0005"
fc "2400"
}
Block {
BlockType Reference
Name "BT Path Loss4"
Ports [1, 1]
Position [350, 50, 410, 90]
ShowName off
AttributesFormatString "Distance: %<d>km"
SourceBlock "commrflib2/Free Space\nPath Loss"
SourceType "Free Space Path Loss"
mode "Distance and Frequency"
dB "10"
d "0.001"
fc "2400"
}
Block {
BlockType From
Name "From"
Position [385, 407, 445, 423]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "Tx_802"
}
Block {
BlockType From
Name "From1"
Position [370, 127, 430, 143]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "Tx_802"
}
Block {
BlockType From
Name "From2"
Position [115, 267, 175, 283]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "Tx_802"
}
Block {
BlockType Goto
Name "Goto"
Position [365, 545, 425, 565]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "Tx_802"
TagVisibility "local"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [555, 55, 585, 85]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [555, 465, 585, 495]
ShowName off
IconShape "round"
Inputs "++|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [495, 265, 515, 285]
ShowName off
IconShape "round"
Inputs "+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Rx2"
Position [710, 63, 740, 77]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Rx1"
Position [705, 473, 735, 487]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Probe"
Position [725, 268, 755, 282]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "AWGN\nChannel1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, 160]
DstBlock "BT Path Loss3"
DstPort 1
}
Branch {
DstBlock "BT Path Loss4"
DstPort 1
}
}
Line {
SrcBlock "Tx1"
SrcPort 1
DstBlock "AWGN\nChannel1"
DstPort 1
}
Line {
SrcBlock "Interferer"
SrcPort 1
DstBlock "Goto"
DstPort 1
}
Line {
SrcBlock "Tx2"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "AWGN\nChannel2"
DstPort 1
}
Branch {
Points [0, -155]
DstBlock "BT Path Loss2"
DstPort 1
}
}
Line {
SrcBlock "AWGN\nChannel2"
SrcPort 1
DstBlock "BT Path Loss1"
DstPort 1
}
Line {
SrcBlock "BT Path Loss4"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Rx1"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Rx2"
DstPort 1
}
Line {
SrcBlock "BT Path Loss1"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "From"
SrcPort 1
DstBlock "802 Path Loss5"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Probe"
DstPort 1
}
Line {
SrcBlock "BT Path Loss3"
SrcPort 1
Points [95, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "802 Path Loss1"
DstPort 1
}
Line {
SrcBlock "BT Path Loss2"
SrcPort 1
Points [90, 0]
DstBlock "Sum2"
DstPort 3
}
Line {
SrcBlock "From2"
SrcPort 1
DstBlock "802 Path Loss2"
DstPort 1
}
Line {
SrcBlock "802 Path Loss5"
SrcPort 1
Points [35, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "802 Path Loss1"
SrcPort 1
Points [35, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "802 Path Loss2"
SrcPort 1
DstBlock "Sum2"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "BT Device"
Ports [4, 4]
Position [35, 20, 115, 110]
ShowName off
AttributesFormatString "Device %<ID>: %<Device_Type>"
FontName "Arial"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "BT Device "
MaskDescription "These parameters are overridden by default by s"
"ystem parameters"
MaskPromptString "Unit ID|Master or Slave|Packet Type|Initial Slo"
"t Pair for HV2 or HV3|Input Wavefile Name for Voice Transmission"
MaskStyleString "edit,popup(Master|Slave),popup(DM1|HV1|HV2|HV3|"
"SCORT),popup(1&2|3&4|5&6),edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "ID=@1;Device_Type=@2;mask_packet_type=&3;Slot_P"
"air=@4;Input_File_Name=&5;"
MaskInitialization "device_init"
MaskDisplay "plot(0,0,100,100,[30,60,60,55,55,30,30],[10,10,"
"90,90,70,70,10],[35,35,55,55,35],[64,45,45,64,64]);\n\n"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1|Master|SCORT|1&2|Input1.wav"
MaskTabNameString ",,,,"
System {
Name "BT Device"
Location [9, 81, 1008, 721]
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 [30, 353, 60, 367]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Rx, Tx Raw Bits"
Position [30, 388, 60, 402]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Rx, Tx Info Bits"
Position [30, 423, 60, 437]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Rx, Tx New Packet"
Position [635, 388, 665, 402]
Port "4"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "ACL BER"
Ports [4, 0, 1]
Position [780, 337, 895, 488]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "ACL BER"
Location [41, 132, 953, 536]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Frame OK"
Position [55, 110, 85, 130]
Port "1"
IconDisplay "Port number"
LatchInput off
Port {
PortNumber 1
Name "Frame OK"
PropagatedSignals "Rx Frame OK"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Inport
Name "Tx Event "
Position [155, 208, 185, 222]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Rx Info Bits"
Position [515, 173, 545, 187]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Tx Info Bits"
Position [155, 163, 185, 177]
Port "4"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [450, 35, 470, 55]
}
Block {
BlockType SubSystem
Name "ACL BER meter"
Ports [3, 0, 1]
Position [735, 162, 820, 268]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "ACL BER meter"
Location [116, 192, 898, 590]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Rx"
Position [105, 163, 135, 177]
Port "1"
IconDisplay "Port number"
LatchInput off
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -