📄 bluetooth_full_duplex.mdl
字号:
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Tx_Raw_Bits1"
}
Block {
BlockType Goto
Name "Goto1"
Position [255, 163, 335, 177]
ShowName off
GotoTag "Signal_Tx1"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto10"
Position [895, 250, 965, 270]
ShowName off
GotoTag "Diagnostics2"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto11"
Position [550, 253, 625, 267]
ShowName off
GotoTag "Probe"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto2"
Position [895, 190, 965, 210]
ShowName off
GotoTag "Signal_Tx2"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto3"
Position [550, 222, 625, 238]
ShowName off
GotoTag "Signal_Rx1"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto4"
Position [255, 252, 335, 268]
ShowName off
GotoTag "Diagnostics1"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto5"
Position [885, 234, 965, 246]
ShowName off
GotoTag "Tx_Info_Bits2"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto6"
Position [180, 417, 260, 433]
ShowName off
GotoTag "Interference"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto7"
Position [255, 232, 335, 248]
ShowName off
GotoTag "Tx_Info_Bits1"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto8"
Position [255, 212, 335, 228]
ShowName off
GotoTag "Tx_Raw_Bits1"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto9"
Position [885, 210, 965, 230]
ShowName off
GotoTag "Tx_Raw_Bits2"
TagVisibility "global"
}
Block {
BlockType SubSystem
Name "Info"
Ports []
Position [760, 41, 868, 94]
BackgroundColor "yellow"
TreatAsAtomicUnit off
MaskDisplay "disp('Info')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Info"
Location [172, 153, 853, 594]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Reference
Name "Model Info"
Ports []
Position [43, 24, 189, 66]
ShowName off
FontName "Arial"
SourceBlock "simulink/Model-Wide\nUtilities/Model Info"
SourceType "CMBlock"
InitialBlockCM "none"
BlockCM "none"
Frame "on"
DisplayStringWithTags "Bluetooth Voice and Data\nVersion %<ModelVe"
"rsion>\n%<ModifiedDate>"
MaskDisplayString "Bluetooth Voice and Data\\nVersion 1.1068\\"
"nTue Aug 27 10:49:43 2002"
HorizontalTextAlignment "Center"
LeftAlignmentValue "0.5"
SourceBlockDiagram "bluetooth_full_duplex"
TagMaxNumber "20"
}
Annotation {
Name "This model simulates full duplex communicat"
"ion between two Bluetooth [1] devices.\nVoice packet types supported include:"
" HV1, HV2, HV3 and SCORT [2]\nData Packet types supported include: DM1 (two-w"
"ay, no NULL packet)\n\nNotes:\n* Set EsNo level in workspace, default is 18dB"
"\n* Data transmission with DM1 packet is two-way (NULL packet not currently s"
"upported)\n\nFile dependancies:\n* bluetooth_init.m: Workspace initialization"
" routine called by PreLoadFcn\n* device_init.m: Device mask initialization fu"
"nction\n* bluetooth_lib2.mdl: Library containing complete devcice, 802.11b tr"
"ansmitter, BT hop generator and BT clock\n* poiss_gaus_prc.m: Variable time-s"
"tep M Code S-function to generate 802.11b poisson packets\n* code_data.mat: 2"
"/3 hanning code matrices and variables\n* Input1.wav: Input wave file\n* Inpu"
"t2.wav: Input wave file\n* The model will also generate 2 output wave files\n"
"\nReferences:\n[1] Bluetooth spec: www.bluetooth.com\n[2]SCOR T spec: IEEE 80"
"2.15-01/145r0"
Position [46, 249]
HorizontalAlignment "left"
FontName "Arial"
FontSize 12
}
}
}
Block {
BlockType SubSystem
Name "Instrumentation"
Ports [3]
Position [500, 394, 570, 476]
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 "on|off"
System {
Name "Instrumentation"
Location [101, 180, 651, 577]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Tx"
Position [60, 143, 90, 157]
NamePlacement "alternate"
}
Block {
BlockType Inport
Name "Tx_802"
Position [60, 208, 90, 222]
NamePlacement "alternate"
Port "2"
}
Block {
BlockType Inport
Name "Rx"
Position [60, 273, 90, 287]
NamePlacement "alternate"
Port "3"
}
Block {
BlockType Constant
Name "State"
Position [215, 20, 245, 50]
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [3, 0, 1]
Position [215, 118, 425, 312]
TreatAsAtomicUnit on
System {
Name "Subsystem"
Location [-9, 78, 986, 648]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Tx"
Position [25, 123, 55, 137]
}
Block {
BlockType Inport
Name "Tx_802"
Position [25, 153, 55, 167]
Port "2"
}
Block {
BlockType Inport
Name "Rx"
Position [20, 428, 50, 442]
Port "3"
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [500, 40, 520, 60]
}
Block {
BlockType Abs
Name "Abs"
Position [320, 130, 350, 160]
ShowName off
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [400, 120, 450, 170]
ShowName off
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "60*440"
V "59*440"
ic "0"
}
Block {
BlockType Reference
Name "Buffer1"
Ports [1, 1]
Position [395, 290, 445, 340]
ShowName off
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "60*440"
V "59*440"
ic "0"
}
Block {
BlockType Reference
Name "Buffer2"
Ports [1, 1]
Position [725, 410, 775, 460]
ShowName off
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "60"
V "59"
ic "-70"
}
Block {
BlockType Constant
Name "Constant1"
Position [455, 175, 485, 205]
ShowName off
Value "0"
}
Block {
BlockType Constant
Name "Constant2"
Position [425, 370, 455, 400]
ShowName off
Value "-1"
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [45, 356, 155, 394]
ShowName off
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
Value ".2*[ones(1,366*88) zeros(1,625*88-366*8"
"8)]'"
SampleMode "Discrete"
discreteOutput "Frame-based"
continuousOutput "Sample-based"
sampTime "625e-6"
framePeriod "625e-6"
additionalParams off
dataType "Inherit from 'Constant value'"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "off"
Ts "625e-6"
FramebasedOutput "on"
}
Block {
BlockType Reference
Name "Downsample"
Ports [1, 1]
Position [235, 128, 280, 162]
ShowName off
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "125"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame rate"
}
Block {
BlockType Reference
Name "Downsample1"
Ports [1, 1]
Position [270, 298, 315, 332]
ShowName off
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "125"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame rate"
}
Block {
BlockType SubSystem
Name "Marker"
Ports [0, 1, 1]
Position [105, 298, 180, 332]
TreatAsAtomicUnit on
System {
Name "Marker"
Location [145, 364, 934, 690]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [385, 35, 405, 55]
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [280, 137, 365, 173]
SourceBlock "dspsrcs4/DSP\nConstant"
SourceType "DSP Constant"
Value ".1*[ones(1,366*88) zeros(1,625*88-3"
"66*88)]'"
SampleMode "Discrete"
discreteOutput "Frame-based"
continuousOutput "Sample-based"
sampTime "625e-6"
framePeriod "625e-6"
additionalParams off
dataType "Inherit from 'Constant value'"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
InterpretAs1D "off"
Ts "625e-6"
FramebasedOutput "on"
}
Block {
BlockType Outport
Name "Tx"
Position [455, 148, 485, 162]
OutputWhenDisabled "reset"
InitialOutput "0"
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
DstBlock "Tx"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [625, 134, 635, 216]
SourceBlock "simulink/Math\nOperations/Matrix\nConca"
"tenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [3, 1]
Position [830, 126, 840, 224]
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConca"
"tenation"
SourceType "Matrix Concatenation"
numInports "3"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation2"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -