📄 bluetooth_voice_article.mdl
字号:
Port {
PortNumber 1
Name "Payload Bits"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Selector
Name "Selector3"
Ports [1, 1]
Position [205, 196, 235, 234]
ShowName off
InputType "Vector"
ElementSrc "Internal"
Elements "[127:366]"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "366"
Port {
PortNumber 1
Name "Payload Bits"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [865, 139, 945, 171]
ShowName off
VariableName "BER_Results"
MaxDataPoints "1"
Decimation "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 {
Position [601, 182]
HorizontalAlignment "left"
Text "Residual BER"
}
Annotation {
Position [600, 225]
HorizontalAlignment "left"
Text "Total RBits"
}
Annotation {
Position [601, 202]
HorizontalAlignment "left"
Text "Total RErrors"
}
Annotation {
Position [601, 292]
HorizontalAlignment "left"
Text "FER"
}
Annotation {
Position [600, 335]
HorizontalAlignment "left"
Text "Total Frames"
}
Annotation {
Position [601, 312]
HorizontalAlignment "left"
Text "Total Frame Errors"
}
Annotation {
Position [601, 77]
HorizontalAlignment "left"
Text "Raw BER"
}
Annotation {
Position [600, 120]
HorizontalAlignment "left"
Text "Total Bits"
}
Annotation {
Position [601, 97]
HorizontalAlignment "left"
Text "Total Errors"
}
}
}
Block {
BlockType Reference
Name "BT Path Loss"
Ports [1, 1]
Position [415, 158, 455, 202]
SourceBlock "dspmathops/dB Gain"
SourceType "dB Gain"
Gain "g"
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);"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
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]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType SubSystem
Name "Double-click\nto play\nOutput Signal"
Ports []
Position [122, 396, 178, 447]
OpenFcn "[Output_Wave,Output_Fs]=wavread('Output.wav');s"
"ound(Output_Wave,Output_Fs);"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
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\nOutput Signal"
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 From
Name "From10"
Position [430, 419, 480, 431]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Tx_802"
}
Block {
BlockType From
Name "From11"
Position [220, 467, 290, 483]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Frame_OK"
}
Block {
BlockType From
Name "From12"
Position [430, 458, 560, 472]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Packet_Envelope_802"
}
Block {
BlockType From
Name "From3"
Position [430, 398, 550, 412]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Radio_Signal_Tx"
}
Block {
BlockType From
Name "From7"
Position [430, 438, 545, 452]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Radio_Signal_Rx"
}
Block {
BlockType From
Name "From8"
Position [220, 431, 280, 449]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Rx_Bits"
}
Block {
BlockType From
Name "From9"
Position [220, 397, 285, 413]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Tx_Bits"
}
Block {
BlockType Goto
Name "Goto3"
Position [780, 172, 850, 188]
ShowName off
GotoTag "Rx_Bits"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto4"
Position [610, 123, 715, 137]
ShowName off
GotoTag "Radio_Signal_Rx"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto5"
Position [270, 123, 375, 137]
NamePlacement "alternate"
ShowName off
GotoTag "Radio_Signal_Tx"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto6"
Position [785, 216, 850, 234]
ShowName off
GotoTag "Frame_OK"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto7"
Position [415, 332, 460, 348]
ShowName off
GotoTag "Tx_802"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto8"
Position [205, 217, 275, 233]
ShowName off
GotoTag "Tx_Bits"
TagVisibility "global"
}
Block {
BlockType SubSystem
Name "Instrumentation"
Ports [4]
Position [610, 396, 715, 474]
OpenFcn "temp=get_param(gcb,'On');set_param(gcb,'On', ge"
"t_param(gcb,'Off'));set_param(gcb,'Off', temp);"
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Instrumentation"
MaskPromptString "On|Off"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVariables "On=&1;Off=&2;"
MaskInitialization "if strcmp(On,'on')\n string='Instrumentation\\"
"nis On\\n(Double-Click\\n to Toggle)\\n ';\n set_param([gcb,'/State'],'Value"
"','1');\nelse\n string='Instrumentation\\nis Off\\n(Double-Click\\n to Toggl"
"e)\\n ';\n set_param([gcb,'/State'],'Value','0');\nend\n"
MaskDisplay "disp(string);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "on|off"
MaskVariableAliases ","
System {
Name "Instrumentation"
Location [364, 197, 877, 677]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Tx"
Position [60, 133, 90, 147]
NamePlacement "alternate"
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "Tx_802"
Position [60, 188, 90, 202]
NamePlacement "alternate"
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "Rx"
Position [60, 243, 90, 257]
NamePlacement "alternate"
Port "3"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "Tx_802 Envelope"
Position [65, 338, 95, 352]
NamePlacement "alternate"
Port "4"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -