📄 bluetooth_lib2.mdl
字号:
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
CloseFcn "tagdialog Close"
GotoTag "Tx_802"
}
Block {
BlockType From
Name "From1"
Position [370, 127, 430, 143]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Tx_802"
}
Block {
BlockType From
Name "From2"
Position [115, 267, 175, 283]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Tx_802"
}
Block {
BlockType Goto
Name "Goto"
Position [365, 545, 425, 565]
ShowName off
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]
}
Block {
BlockType Outport
Name "Rx1"
Position [705, 473, 735, 487]
Port "2"
}
Block {
BlockType Outport
Name "Probe"
Position [725, 268, 755, 282]
Port "3"
}
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
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"
System {
Name "BT Device"
Location [9, 81, 1008, 721]
Open on
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]
}
Block {
BlockType Inport
Name "Rx, Tx Raw Bits"
Position [30, 388, 60, 402]
Port "2"
}
Block {
BlockType Inport
Name "Rx, Tx Info Bits"
Position [30, 423, 60, 437]
Port "3"
}
Block {
BlockType Inport
Name "Rx, Tx New Packet"
Position [635, 388, 665, 402]
Port "4"
}
Block {
BlockType SubSystem
Name "ACL BER"
Ports [4, 0, 1]
Position [780, 337, 895, 488]
TreatAsAtomicUnit off
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 {
PortNumber 1
Name "Frame OK"
PropagatedSignals "Rx Frame OK"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Inport
Name "Tx Event "
Position [155, 208, 185, 222]
Port "2"
}
Block {
BlockType Inport
Name "Rx Info Bits"
Position [515, 173, 545, 187]
Port "3"
}
Block {
BlockType Inport
Name "Tx Info Bits"
Position [155, 163, 185, 177]
Port "4"
}
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
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]
}
Block {
BlockType Inport
Name "Tx"
Position [105, 128, 135, 142]
Port "2"
}
Block {
BlockType Inport
Name "Time"
Position [105, 243, 135, 257]
Port "3"
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [315, 25, 335, 45]
}
Block {
BlockType SubSystem
Name "Calculate\nThroughput"
Ports [2, 1]
Position [395, 218, 480, 262]
TreatAsAtomicUnit off
System {
Name "Calculate\nThroughput"
Location [337, 286, 932, 514]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "BER"
Position [90, 88, 120, 102]
Port {
PortNumber 1
Name "Total bits"
PropagatedSignals "Error results"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Inport
Name "Curent time"
Position [90, 143, 120, 157]
Port "2"
}
Block {
BlockType Fcn
Name "Fcn"
Position [150, 135, 210, 165]
ShowName off
Expr "u+eps"
}
Block {
BlockType Fcn
Name "Ignore\none packet"
Position [295, 80, 355, 110]
Expr "u-160"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [410, 86, 455, 119]
ShowName off
Inputs "*/"
Port {
PortNumber 1
Name "Bits/time"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [160, 76, 200, 114]
ShowName off
Elements "[3]"
InputPortWidth "3"
Port {
PortNumber 1
Name "Total bits"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Outport
Name "Data rate"
Position [550, 98, 580, 112]
}
Line {
Name "Total bits"
Labels [1, 0]
SrcBlock "Selector"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -