📄 bluetooth_voice_article.mdl
字号:
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Tx_Bits"
Position [15, 78, 45, 92]
}
Block {
BlockType Inport
Name "Rx_Bits"
Position [80, 98, 110, 112]
Port "2"
}
Block {
BlockType Inport
Name "Frame_OK"
Position [200, 153, 230, 167]
Port "3"
}
Block {
BlockType Constant
Name "Constant1"
Position [315, 295, 335, 315]
ShowName off
}
Block {
BlockType Display
Name "FER"
Ports [1]
Position [505, 285, 590, 345]
Decimation "1"
}
Block {
BlockType Reference
Name "Frame Error Rate \nCalculation"
Ports [2, 1]
Position [370, 295, 460, 335]
SourceBlock "commsink2/Error Rate Calculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 "off"
stop "off"
numErr "100"
maxBits "1e6"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [730, 136, 735, 174]
ShowName off
Inputs "3"
DisplayOption "bar"
Port {
PortNumber 1
Name "BER Results"
PropagatedSignals ", , "
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType ToWorkspace
Name "Number of bits\nraw transmitted"
Position [865, 69, 945, 101]
VariableName "Num_bits_Tx"
MaxDataPoints "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Display
Name "Raw BER"
Ports [1]
Position [505, 65, 590, 125]
Decimation "1"
}
Block {
BlockType Reference
Name "Raw BER\nCalculation"
Ports [2, 1]
Position [375, 76, 460, 114]
SourceBlock "commsink2/Error Rate Calculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 "off"
stop "off"
numErr "100"
maxBits "1e6"
}
Block {
BlockType Display
Name "Residual BER"
Ports [1]
Position [505, 175, 590, 235]
Decimation "1"
}
Block {
BlockType SubSystem
Name "Residual BER\nCalculation"
Ports [2, 1, 1]
Position [375, 178, 460, 227]
TreatAsAtomicUnit on
System {
Name "Residual BER\nCalculation"
Location [321, 425, 744, 649]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 83, 60, 97]
}
Block {
BlockType Inport
Name "In2"
Position [30, 113, 60, 127]
Port "2"
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [170, 15, 190, 35]
}
Block {
BlockType Reference
Name "Error Rate Calculation"
Ports [2, 1]
Position [145, 74, 225, 136]
ShowName off
SourceBlock "commsink2/Error Rate Calculation"
SourceType "Error Rate Calculation"
N "0"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 "off"
stop "off"
numErr "100"
maxBits "1e6"
}
Block {
BlockType Outport
Name "Out1"
Position [290, 98, 320, 112]
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Error Rate Calculation"
DstPort 1
}
Line {
SrcBlock "Error Rate Calculation"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Error Rate Calculation"
DstPort 2
}
}
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [800, 136, 830, 174]
ShowName off
Elements "[1 4 7]"
InputPortWidth "9"
}
Block {
BlockType Selector
Name "Selector1"
Ports [1, 1]
Position [800, 66, 830, 104]
ShowName off
Elements "[3]"
InputPortWidth "3"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [75, 171, 105, 209]
ShowName off
Elements "[127:366]"
InputPortWidth "366"
Port {
PortNumber 1
Name "Payload Bits"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Selector
Name "Selector3"
Ports [1, 1]
Position [205, 196, 235, 234]
ShowName off
Elements "[127:366]"
InputPortWidth "366"
Port {
PortNumber 1
Name "Payload Bits"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [865, 139, 945, 171]
ShowName off
VariableName "BER_Results"
MaxDataPoints "1"
SampleTime "-1"
SaveFormat "Array"
}
Line {
SrcBlock "Residual BER\nCalculation"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Residual BER"
DstPort 1
}
Branch {
Points [0, 55; 205, 0; 0, -105]
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Frame_OK"
SrcPort 1
Points [65, 0]
Branch {
Points [115, 0]
DstBlock "Residual BER\nCalculation"
DstPort enable
}
Branch {
Points [0, 165]
DstBlock "Frame Error Rate \nCalculation"
DstPort 2
}
}
Line {
SrcBlock "Frame Error Rate \nCalculation"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "FER"
DstPort 1
}
Branch {
Points [0, 70; 215, 0; 0, -220]
DstBlock "Mux"
DstPort 3
}
}
Line {
SrcBlock "Tx_Bits"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Raw BER\nCalculation"
DstPort 1
}
Branch {
DstBlock "Selector2"
DstPort 1
}
}
Line {
SrcBlock "Rx_Bits"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "Raw BER\nCalculation"
DstPort 2
}
Branch {
Points [0, 110]
DstBlock "Selector3"
DstPort 1
}
}
Line {
SrcBlock "Raw BER\nCalculation"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Raw BER"
DstPort 1
}
Branch {
Points [0, 50; 220, 0]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, -60]
DstBlock "Selector1"
DstPort 1
}
}
}
Line {
Name "BER Results"
Labels [1, 1]
SrcBlock "Mux"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Frame Error Rate \nCalculation"
DstPort 1
}
Line {
SrcBlock "Selector1"
SrcPort 1
DstBlock "Number of bits\nraw transmitted"
DstPort 1
}
Line {
Name "Payload Bits"
Labels [0, 0]
SrcBlock "Selector3"
SrcPort 1
DstBlock "Residual BER\nCalculation"
DstPort 2
}
Line {
Name "Payload Bits"
Labels [0, 0]
SrcBlock "Selector2"
SrcPort 1
DstBlock "Residual BER\nCalculation"
DstPort 1
}
Annotation {
Name "Residual BER"
Position [601, 182]
HorizontalAlignment "left"
}
Annotation {
Name "Total RBits"
Position [600, 225]
HorizontalAlignment "left"
}
Annotation {
Name "Total RErrors"
Position [601, 202]
HorizontalAlignment "left"
}
Annotation {
Name "FER"
Position [601, 292]
HorizontalAlignment "left"
}
Annotation {
Name "Total Frames"
Position [600, 335]
HorizontalAlignment "left"
}
Annotation {
Name "Total Frame Errors"
Position [601, 312]
HorizontalAlignment "left"
}
Annotation {
Name "Raw BER"
Position [601, 77]
HorizontalAlignment "left"
}
Annotation {
Name "Total Bits"
Position [600, 120]
HorizontalAlignment "left"
}
Annotation {
Name "Total Errors"
Position [601, 97]
HorizontalAlignment "left"
}
}
}
Block {
BlockType Reference
Name "BT Path Loss"
Ports [1, 1]
Position [415, 158, 455, 202]
SourceBlock "dspmathops/dB Gain"
SourceType "dB Gain"
dB "-40"
intype "Amplitude"
}
Block {
BlockType SubSystem
Name "Double-click\nto play\nInput Signal"
Ports []
Position [54, 396, 110, 446]
OpenFcn "[Input_Wave,Input_Fs]=wavread('Input.wav');soun"
"d(Input_Wave,Input_Fs);"
TreatAsAtomicUnit off
MaskType "Plot histogram"
MaskInitialization "[x,y,x1,y1,x2,y2] = dspblkwao2('icon');"
MaskDisplay "patch(x1,y1,[1 1 1]*.5);\npatch(x2,y2);\nplot(x"
",y); plot(x1,y1)"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Double-click\nto play\nInput Signal"
Location [148, 182, 646, 482]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -