📄 bluetooth_voice.mdl
字号:
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType Reference
Name "Counter"
Ports [1, 1]
Position [230, 315, 300, 375]
SourceBlock "dspswit3/Counter"
SourceType "Counter"
Direction "Up"
CountEvent "Rising edge"
CounterSize "User defined"
MaxCount "1000"
InitialCount "0"
Output "Count"
HitValue "32"
ResetInput off
SamplesPerFrame "1"
Ts "1"
}
Block {
BlockType Constant
Name "State"
Position [215, 20, 245, 50]
Value "1"
VectorParams1D on
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [3, 0, 1]
Position [215, 115, 385, 275]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Subsystem"
Location [-2, 145, 972, 684]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [40, 123, 70, 137]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In2"
Position [40, 153, 70, 167]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In3"
Position [30, 438, 60, 452]
Port "3"
LatchInput off
Interpolate on
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [475, 45, 495, 65]
StatesWhenEnabling "held"
ShowOutputPort off
}
Block {
BlockType Abs
Name "Abs"
Position [295, 130, 325, 160]
ShowName off
SaturateOnIntegerOverflow on
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [375, 120, 425, 170]
ShowName off
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "60*500"
V "59*500"
ic "0"
}
Block {
BlockType Reference
Name "Buffer1"
Ports [1, 1]
Position [370, 295, 420, 345]
ShowName off
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "60*500"
V "59*500"
ic "0"
}
Block {
BlockType Reference
Name "Buffer2"
Ports [1, 1]
Position [700, 415, 750, 465]
ShowName off
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "60"
V "59"
ic "-70"
}
Block {
BlockType Constant
Name "Constant1"
Position [415, 190, 445, 220]
ShowName off
Value "0"
VectorParams1D on
}
Block {
BlockType Constant
Name "Constant2"
Position [400, 375, 430, 405]
ShowName off
Value "-.5"
VectorParams1D on
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [40, 362, 125, 398]
ShowName off
SourceBlock "dspsrcs3/DSP\nConstant"
SourceType "DSP Constant"
Value ".2*[ones(1,36600) zeros(1,62500-36600)]"
"'"
InterpretAs1D off
SampleMode "Discrete"
Ts "625e-6"
FramebasedOutput on
}
Block {
BlockType Reference
Name "Downsample"
Ports [1, 1]
Position [210, 128, 255, 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 [245, 303, 290, 337]
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 [80, 303, 155, 337]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Marker"
Location [144, 376, 933, 702]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [385, 35, 405, 55]
StatesWhenEnabling "held"
ShowOutputPort off
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [280, 137, 365, 173]
SourceBlock "dspsrcs3/DSP\nConstant"
SourceType "DSP Constant"
Value ".1*[ones(1,36600) zeros(1,62500-366"
"00)]'"
InterpretAs1D off
SampleMode "Discrete"
Ts "625e-6"
FramebasedOutput on
}
Block {
BlockType Outport
Name "Tx"
Position [455, 148, 485, 162]
Port "1"
OutputWhenDisabled "reset"
InitialOutput "0"
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
DstBlock "Tx"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [2, 1]
Position [555, 144, 610, 186]
SourceBlock "simulink3/Signals\n& Systems/Matrix\nCo"
"ncatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [3, 1]
Position [805, 137, 860, 193]
ShowName off
SourceBlock "simulink3/Signals\n& Systems/Matrix\nCo"
"ncatenation"
SourceType "Matrix Concatenation"
numInports "3"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation2"
Ports [2, 1]
Position [130, 113, 185, 177]
ShowName off
SourceBlock "simulink3/Signals\n& Systems/Matrix\nCo"
"ncatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Mean"
Ports [1, 1]
Position [315, 420, 370, 460]
SourceBlock "dspstat3/Mean"
SourceType "Mean"
run off
reset_popup "None"
}
Block {
BlockType Reference
Name "Multiport\nSelector"
Ports [1, 3]
Position [630, 138, 680, 192]
ShowName off
SourceBlock "dspindex/Multiport\nSelector"
SourceType "Multiport Selector"
rowsOrCols "Columns"
idxCellArray "{ 1,2,3}"
idxErrMode "Clip Index"
Port {
PortNumber 1
Name "Bluetooth Tx"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
Port {
PortNumber 2
Name "802.11b Tx"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
Port {
PortNumber 3
Name "Slots"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [485, 137, 515, 168]
ShowName off
Operator ">"
}
Block {
BlockType Reference
Name "Reshape"
Ports [1, 1]
Position [110, 428, 140, 452]
SourceBlock "simulink3/Signals\n& Systems/Reshape"
SourceType "Reshape"
OutputDimensionality "Customize"
OutputDimensions "[500,125]"
}
Block {
BlockType Selector
Name "Selector1"
Ports [1, 1]
Position [555, 422, 575, 458]
ShowName off
InputType "Vector"
ElementSrc "Internal"
Elements "[257:512 1:256]"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "512"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [625, 422, 645, 458]
ShowName off
InputType "Vector"
ElementSrc "Internal"
Elements "7:506"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "512"
}
Block {
BlockType Reference
Name "Short-Time FFT1"
Ports [1, 1]
Position [180, 412, 245, 468]
ShowName off
SourceBlock "dspspect3/Short-Time FFT"
SourceType "Short-Time FFT"
wintype "Hanning"
Rs "50"
beta "5"
winsamp "Periodic"
inheritFFT off
fftsize "512"
navg "1"
}
Block {
BlockType Reference
Name "Spectogram"
Ports [1]
Position [910, 415, 955, 465]
SourceBlock "dspsnks3/Matrix\nViewer"
SourceType "Matrix Viewer"
ImageParams on
CMapStr "jet(256)"
YMin "-60"
YMax "-30"
AxisColorbar on
AxisParams on
AxisOrigin "Lower left corner"
XLabel "Time Index"
YLabel "Frequency Index"
ZLabel "dB Magnitude"
FigPos "[65 269 688 127]"
AxisZoom on
}
Block {
BlockType Reference
Name "Spectrum\nPlot"
Ports [1]
Position [650, 300, 685, 350]
SourceBlock "dspsnks3/Vector\nScope"
SourceType "Vector Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend on
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[2 605 774 120]"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr off
XIncr "1e-8"
XLabel "Time"
YUnits "Magnitude"
YMin "-80.906815143504"
YMax "-25.7732682054945"
YLabel "Magnitude, dB"
LineProperties off
LineStyles "--"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [450, 310, 470, 330]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [195, 310, 215, 330]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Reference
Name "Timing\nDiagram"
Ports [1]
Position [915, 140, 950, 190]
SourceBlock "dspsnks3/Vector\nScope"
SourceType "Vector Scope"
ScopeProperties on
Domain "User-defined"
HorizSpan "1"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend on
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[8 427 776 129]"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -