📄 dtmf.mdl
字号:
Name "Detected"
Labels [0, 0]
SrcBlock "Sum1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Digital IIR\nFilter Design2"
DstPort 1
}
Line {
Name "Band Passed"
Labels [0, 0]
SrcBlock "Digital IIR\nFilter Design2"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Digital IIR\nFilter Design1"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, -40]
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
Name "Y/N"
Labels [0, 0; 1, 0]
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
Name "Detected"
Labels [0, 0]
SrcBlock "Digital IIR\nFilter Design1"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Detect tone3"
Ports [1, 1]
Position [240, 280, 310, 310]
AttributesFormatString "%<F> Hz"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "Sample Rate (Hz)|Frequency"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVariables "Fs=@1;F=@2;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Fs|1209"
MaskVariableAliases ","
Port {
PortNumber 1
Name "row 1"
PropagatedSignals "Y/N"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
System {
Name "Detect tone3"
Location [77, 367, 874, 660]
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, 93, 70, 107]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Abs
Name "Abs"
Position [250, 85, 280, 115]
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Name "Constant"
Position [515, 140, 545, 170]
Value ".6"
VectorParams1D on
}
Block {
BlockType Reference
Name "Digital IIR\nFilter Design1"
Ports [1, 1]
Position [325, 72, 395, 128]
SourceBlock "dspddes3/Digital IIR\nFilter Desi"
"gn"
SourceType "Digital IIR Filter Design"
method "Butterworth"
filttype "Lowpass"
N "4"
Wlo "100/(Fs/2)"
Whi "(F+10)/(Fs/2)"
Rp "1"
Rs "20"
Port {
PortNumber 1
Name "Detected"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Reference
Name "Digital IIR\nFilter Design2"
Ports [1, 1]
Position [130, 72, 200, 128]
SourceBlock "dspddes3/Digital IIR\nFilter Desi"
"gn"
SourceType "Digital IIR Filter Design"
method "Chebyshev I"
filttype "Bandpass"
N "4"
Wlo "(F-10)/(Fs/2)"
Whi "(F+10)/(Fs/2)"
Rp "1"
Rs "20"
Port {
PortNumber 1
Name "Band Passed"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Gain
Name "Gain"
Position [510, 86, 555, 114]
Gain "1/Framesize"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "Detected"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [620, 92, 650, 123]
Operator ">="
Port {
PortNumber 1
Name "Y/N"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [1, 1]
Position [455, 90, 475, 110]
ShowName off
IconShape "round"
Inputs "1"
SaturateOnIntegerOverflow on
Port {
PortNumber 1
Name "Detected"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Outport
Name "Out1"
Position [750, 103, 780, 117]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
Name "Detected"
Labels [0, 0]
SrcBlock "Digital IIR\nFilter Design1"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
Name "Y/N"
Labels [0, 0; 1, 0]
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, -40]
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "Abs"
SrcPort 1
DstBlock "Digital IIR\nFilter Design1"
DstPort 1
}
Line {
Name "Band Passed"
Labels [0, 0]
SrcBlock "Digital IIR\nFilter Design2"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Digital IIR\nFilter Design2"
DstPort 1
}
Line {
Name "Detected"
Labels [0, 0]
SrcBlock "Sum1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
Name "Detected"
Labels [0, 0]
SrcBlock "Gain"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Frame Status\nConversion1"
Ports [1, 1]
Position [595, 184, 630, 216]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConvers"
"ion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Sample-based"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [3, 1]
Position [390, 55, 440, 345]
SourceBlock "simulink3/Signals\n& Systems/Matrix"
"\nConcatenation"
SourceType "Matrix Concatenation"
numInports "3"
catMethod "Vertical"
Port {
PortNumber 1
Name "YN"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Outport
Name "Out1"
Position [705, 193, 735, 207]
FontName "MS Sans Serif"
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
Name "YN"
Labels [0, 0]
SrcBlock "Matrix\nConcatenation1"
SrcPort 1
DstBlock "Bit to Integer\nConverter1"
DstPort 1
}
Line {
SrcBlock "Bit to Integer\nConverter1"
SrcPort 1
DstBlock "Frame Status\nConversion1"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion1"
SrcPort 1
DstBlock "Col=f(Tone)"
DstPort 1
}
Line {
Name "row 1"
Labels [0, 0]
SrcBlock "Detect tone"
SrcPort 1
DstBlock "Matrix\nConcatenation1"
DstPort 1
}
Line {
Name "row 1"
Labels [0, 0]
SrcBlock "Detect tone2"
SrcPort 1
DstBlock "Matrix\nConcatenation1"
DstPort 2
}
Line {
Name "row 1"
Labels [0, 0]
SrcBlock "Detect tone3"
SrcPort 1
DstBlock "Matrix\nConcatenation1"
DstPort 3
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
Points [0, 95]
Branch {
DstBlock "Detect tone2"
DstPort 1
}
Branch {
Points [0, 95]
DstBlock "Detect tone3"
DstPort 1
}
}
Branch {
DstBlock "Detect tone"
DstPort 1
}
}
Line {
SrcBlock "Col=f(Tone)"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Calculate Row"
Ports [1, 1]
Position [230, 67, 300, 133]
FontName "MS Sans Serif"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Calculate Row"
Location [157, 135, 927, 603]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 58, 45, 72]
FontName "MS Sans Serif"
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType SubSystem
Name "Detect tone"
Ports [1, 1]
Position [225, 50, 295, 80]
AttributesFormatString "%<F> Hz"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "Sample Rate (Hz)|Frequency"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVariables "Fs=@1;F=@2;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Fs|941"
MaskVariableAliases ","
Port {
PortNumber 1
Name "row 1"
PropagatedSignals "Y/N"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
System {
Name "Detect tone"
Location [33, 79, 830, 372]
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, 93, 70, 107]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Abs
Name "Abs"
Position [250, 85, 280, 115]
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Name "Constant"
Position [515, 140, 545, 170]
Value ".6"
VectorParams1D on
}
Block {
BlockType Reference
Name "Digital IIR\nFilter Design1"
Ports [1, 1]
Position [325, 72, 395, 128]
SourceBlock "dspddes3/Digital IIR\nFilter
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -