📄 bluetooth_voice_article.mdl
字号:
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel1"
SrcPort 1
DstBlock "Contiguous\nCopy"
DstPort 1
}
}
}
Block {
BlockType If
Name "If"
Ports [1, 2]
Position [80, 25, 160, 65]
NumInputs "1"
IfExpression "u1 == 0"
ShowElse on
}
Block {
BlockType Merge
Name "Merge"
Ports [2, 1]
Position [385, 210, 425, 250]
ShowName off
Inputs "2"
InitialOutput "[]"
AllowUnequalInputPortWidths off
InputPortOffsets "[]"
}
Block {
BlockType SubSystem
Name "Pass Through"
Ports [1, 1, 0, 0, 0, 0, 0, 1]
Position [230, 90, 310, 130]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Pass Through"
Location [346, 414, 844, 638]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [75, 78, 105, 92]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType ActionPort
Name "Action Port"
Position [170, 15, 229, 43]
InitializeStates "held"
ActionType "then"
}
Block {
BlockType Outport
Name "Out1"
Position [325, 78, 355, 92]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out1"
Position [450, 223, 480, 237]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Add noise"
SrcPort 1
DstBlock "Merge"
DstPort 2
}
Line {
SrcBlock "Pass Through"
SrcPort 1
Points [55, 0]
DstBlock "Merge"
DstPort 1
}
Line {
SrcBlock "If"
SrcPort 1
Points [105, 0]
DstBlock "Pass Through"
DstPort ifaction
}
Line {
SrcBlock "In2"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, -130]
DstBlock "Pass Through"
DstPort 1
}
Branch {
DstBlock "Add noise"
DstPort 1
}
}
Line {
SrcBlock "If"
SrcPort 2
Points [45, 0; 0, 150]
DstBlock "Add noise"
DstPort ifaction
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "If"
DstPort 1
}
Line {
SrcBlock "Merge"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out1"
Position [470, 218, 500, 232]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Mode"
SrcPort 1
DstBlock "Subsystem"
DstPort 1
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Slot 1 enable3"
SrcPort 1
DstBlock "Generate noise\nonly for slot 1"
DstPort 2
}
Line {
SrcBlock "Generate noise\nonly for slot 1"
SrcPort 1
Points [5, 0]
DstBlock "Subsystem"
DstPort enable
}
Line {
SrcBlock "Slot 1 enable2"
SrcPort 1
DstBlock "Generate noise\nonly for slot 1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Subsystem"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "BER and FER meters"
Ports [3]
Position [340, 388, 405, 492]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "BER and FER meters"
Location [35, 187, 1001, 611]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Tx_Bits"
Position [15, 78, 45, 92]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "Rx_Bits"
Position [80, 98, 110, 112]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "Frame_OK"
Position [200, 153, 230, 167]
Port "3"
LatchInput off
Interpolate on
}
Block {
BlockType Constant
Name "Constant1"
Position [315, 295, 335, 315]
ShowName off
Value "1"
VectorParams1D on
}
Block {
BlockType Display
Name "FER"
Ports [1]
Position [505, 285, 590, 345]
Format "short"
Decimation "1"
Floating off
SampleTime "-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"
}
}
Block {
BlockType ToWorkspace
Name "Number of bits\nraw transmitted"
Position [865, 69, 945, 101]
VariableName "Num_bits_Tx"
MaxDataPoints "1"
Decimation "1"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Display
Name "Raw BER"
Ports [1]
Position [505, 65, 590, 125]
Format "short"
Decimation "1"
Floating off
SampleTime "-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]
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType SubSystem
Name "Residual BER\nCalculation"
Ports [2, 1, 1]
Position [375, 178, 460, 227]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Residual BER\nCalculation"
Location [321, 425, 744, 649]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 83, 60, 97]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In2"
Position [30, 113, 60, 127]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [170, 15, 190, 35]
StatesWhenEnabling "held"
ShowOutputPort off
}
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]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
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
InputType "Vector"
ElementSrc "Internal"
Elements "[1 4 7]"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "9"
}
Block {
BlockType Selector
Name "Selector1"
Ports [1, 1]
Position [800, 66, 830, 104]
ShowName off
InputType "Vector"
ElementSrc "Internal"
Elements "[3]"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "3"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [75, 171, 105, 209]
ShowName off
InputType "Vector"
ElementSrc "Internal"
Elements "[127:366]"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "366"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -