📄 bluetooth_voice.mdl
字号:
Name "Marker"
Ports [0, 1, 1]
Position [80, 303, 155, 337]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Marker"
Location [144, 376, 933, 702]
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"
ShowPortLabels on
Value ".1*[ones(1,36600) zeros(1,62500-366"
"00)]'"
SampleMode "Discrete"
discreteOutput "Frame-based"
continuousOutput "Sample-based"
sampTime "625e-6"
framePeriod "625e-6"
additionalParams off
allowOverrides on
dataType "Inherit from 'Constant value'"
isSigned on
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]
IconDisplay "Port number"
BusOutputAsStruct off
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 "simulink/Math\nOperations/Matrix\nConca"
"tenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [3, 1]
Position [805, 137, 860, 193]
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConca"
"tenation"
SourceType "Matrix Concatenation"
numInports "3"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation2"
Ports [2, 1]
Position [130, 113, 185, 177]
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConca"
"tenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Mean"
Ports [1, 1]
Position [315, 420, 370, 460]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag0"
SourceBlock "dspstat3/Mean"
SourceType "Mean"
run off
reset_popup "None"
additionalParams off
allowOverrides on
outputMode "Same as accumulator"
outputWordLength "32"
outputFracLength "30"
accumMode "Same as input"
accumWordLength "32"
accumFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
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"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
Port {
PortNumber 2
Name "802.11b Tx"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
Port {
PortNumber 3
Name "Slots"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
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 "simulink/Math\nOperations/Reshape"
SourceType "Reshape"
OutputDimensionality "Customize"
OutputDimensions "[500,125]"
}
Block {
BlockType Selector
Name "Selector1"
Ports [1, 1]
Position [555, 422, 575, 458]
ShowName off
Elements "[257:512 1:256]"
InputPortWidth "512"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [625, 422, 645, 458]
ShowName off
Elements "7:506"
InputPortWidth "512"
}
Block {
BlockType Reference
Name "Short-Time FFT1"
Ports [1, 1]
Position [180, 412, 245, 468]
ShowName off
SourceBlock "dspspect3/Periodogram"
SourceType "Periodogram"
ShowPortLabels on
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 "dspsnks4/Matrix\nViewer"
SourceType "Matrix Viewer"
ShowPortLabels off
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 "dspsnks4/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 "--"
ShowPortLabels off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [450, 310, 470, 330]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [195, 310, 215, 330]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Reference
Name "Timing\nDiagram"
Ports [1]
Position [915, 140, 950, 190]
SourceBlock "dspsnks4/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]"
InheritXIncr off
XIncr "125*1e-8"
XLabel "Time (s)"
YUnits "dB"
YMin "-0.525"
YMax "1.05"
YLabel "Amplitude"
LineProperties off
LineStyles "-|-"
LineColors "[0 1 0]|[1 0 0]"
ShowPortLabels off
}
Block {
BlockType Reference
Name "Transpose"
Ports [1, 1]
Position [795, 420, 850, 460]
SourceBlock "dspmtrx3/Transpose"
SourceType "Transpose"
Hermitian off
overflowFlag on
}
Block {
BlockType Reference
Name "Transpose1"
Ports [1, 1]
Position [265, 417, 300, 463]
SourceBlock "dspmtrx3/Transpose"
SourceType "Transpose"
Hermitian off
overflowFlag on
}
Block {
BlockType Reference
Name "Transpose2"
Ports [1, 1]
Position [390, 417, 425, 463]
SourceBlock "dspmtrx3/Transpose"
SourceType "Transpose"
Hermitian off
overflowFlag on
}
Block {
BlockType Reference
Name "dB Conversion1"
Ports [1, 1]
Position [450, 419, 485, 461]
ShowName off
SourceBlock "dspmathops/dB Conversion"
SourceType "dB Conversion"
ShowPortLabels on
dBtype "dB"
intype "Power"
R "1"
fuzz on
Port {
PortNumber 1
Name "ISM Band Spectrum"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Reference
Name "enable"
Ports [0, 1]
Position [15, 261, 95, 279]
NamePlacement "alternate"
SourceBlock "dspsrcs4/Signal From\nWorkspace"
SourceType "Signal From Workspace"
ShowPortLabels on
X "[1 0 0 0 0 0]"
Ts "625e-6"
nsamps "1"
OutputAfterFinalValue "Cyclic repetition"
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
Points [75, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Downsample1"
DstPort 1
}
Line {
SrcBlock "Marker"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Buffer1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [25, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Matrix\nConcatenation"
SrcPort 1
DstBlock "Multiport\nSelector"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
DstBlock "Matrix\nConcatenation"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [10, 0; 0, -85; 55, 0]
DstBlock "Matrix\nConcatenation"
DstPort 2
}
Line {
SrcBlock "Downsample1"
SrcPort 1
DstBlock "Buffer1"
DstPort 1
}
Line {
Name "Slots"
Labels [-1, 1]
SrcBlock "Multiport\nSelector"
SrcPort 3
DstBlock "Matrix\nConcatenation1"
DstPort 3
}
Line {
SrcBlock "enable"
SrcPort 1
Points [15, 0]
DstBlock "Marker"
DstPort enable
}
Line
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -