⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dtmf.mdl

📁 dtfm 双音多频程序源代码
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	      LatchInput	      off
	      Port {
		PortNumber		1
		Name			"Input Tones"
		PropagatedSignals	"tones + noise"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Calculate\nDigit"
	      Ports		      [2, 1]
	      Position		      [415, 92, 445, 128]
	      SourceBlock	      "simulink3/Functions\n& Tables/Look-Up\n"
"Table (2-D)"
	      SourceType	      "Lookup Table (2-D)"
	      x			      "[1:4]"
	      y			      "[1:3]"
	      t			      "[1 2 3;4 5 6;7 8 9;10 0 11]"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Calculate Column"
	      Ports		      [1, 1]
	      Position		      [230, 175, 300, 245]
	      FontName		      "MS Sans Serif"
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Calculate Column"
		Location		[24, 125, 786, 511]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "In1"
		  Position		  [15, 97, 45, 113]
		  NamePlacement		  "alternate"
		  FontName		  "MS Sans Serif"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Reference
		  Name			  "Bit to Integer\nConverter1"
		  Ports			  [1, 1]
		  Position		  [495, 178, 575, 222]
		  SourceBlock		  "commutil2/Bit to Integer\nConverter"
		  SourceType		  "Bit to Integer Converter"
		  nbits			  "3"
		}
		Block {
		  BlockType		  Lookup
		  Name			  "Col=f(Tone)"
		  Position		  [650, 185, 680, 215]
		  DialogController	  "Simulink.DDGSource"
		  InputValues		  "[0:7]"
		  OutputValues		  "[0 1 2 0 3 0 0 0]"
		}
		Block {
		  BlockType		  SubSystem
		  Name			  "Detect tone"
		  Ports			  [1, 1]
		  Position		  [240, 90, 310, 120]
		  AttributesFormatString  "%<F> Hz"
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  MaskPromptString	  "Sample Rate (Hz)|Frequency"
		  MaskStyleString	  "edit,edit"
		  MaskTunableValueString  "on,on"
		  MaskCallbackString	  "|"
		  MaskEnableString	  "on,on"
		  MaskVisibilityString	  "on,on"
		  MaskToolTipString	  "on,on"
		  MaskVarAliasString	  ","
		  MaskVariables		  "Fs=@1;F=@2;"
		  MaskIconFrame		  on
		  MaskIconOpaque	  on
		  MaskIconRotate	  "none"
		  MaskIconUnits		  "autoscale"
		  MaskValueString	  "Fs|1477"
		  MaskTabNameString	  ","
		  Port {
		    PortNumber		    1
		    Name		    "row 1"
		    PropagatedSignals	    "Y/N"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		  System {
		    Name		    "Detect tone"
		    Location		    [71, 373, 868, 666]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "In1"
		    Position		    [40, 93, 70, 107]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Abs
		    Name		    "Abs"
		    Position		    [250, 85, 280, 115]
		    }
		    Block {
		    BlockType		    Constant
		    Name		    "Constant"
		    Position		    [515, 140, 545, 170]
		    Value		    ".6"
		    }
		    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"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    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"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [510, 86, 555, 114]
		    Gain		    "1/Framesize"
		    Port {
		    PortNumber		    1
		    Name		    "Detected"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    Block {
		    BlockType		    RelationalOperator
		    Name		    "Relational\nOperator"
		    Position		    [620, 92, 650, 123]
		    Port {
		    PortNumber		    1
		    Name		    "Y/N"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum1"
		    Ports		    [1, 1]
		    Position		    [455, 90, 475, 110]
		    ShowName		    off
		    IconShape		    "round"
		    Inputs		    "1"
		    Port {
		    PortNumber		    1
		    Name		    "Detected"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Out1"
		    Position		    [750, 103, 780, 117]
		    IconDisplay		    "Port number"
		    }
		    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		  SubSystem
		  Name			  "Detect tone2"
		  Ports			  [1, 1]
		  Position		  [240, 185, 310, 215]
		  AttributesFormatString  "%<F> Hz"
		  TreatAsAtomicUnit	  off
		  MinAlgLoopOccurrences	  off
		  RTWSystemCode		  "Auto"
		  MaskPromptString	  "Sample Rate (Hz)|Frequency"
		  MaskStyleString	  "edit,edit"
		  MaskTunableValueString  "on,on"
		  MaskCallbackString	  "|"
		  MaskEnableString	  "on,on"
		  MaskVisibilityString	  "on,on"
		  MaskToolTipString	  "on,on"
		  MaskVarAliasString	  ","
		  MaskVariables		  "Fs=@1;F=@2;"
		  MaskIconFrame		  on
		  MaskIconOpaque	  on
		  MaskIconRotate	  "none"
		  MaskIconUnits		  "autoscale"
		  MaskValueString	  "Fs|1336"
		  MaskTabNameString	  ","
		  Port {
		    PortNumber		    1
		    Name		    "row 1"
		    PropagatedSignals	    "Y/N"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		  System {
		    Name		    "Detect tone2"
		    Location		    [71, 373, 868, 666]
		    Open		    off
		    ModelBrowserVisibility  off
		    ModelBrowserWidth	    200
		    ScreenColor		    "white"
		    PaperOrientation	    "landscape"
		    PaperPositionMode	    "auto"
		    PaperType		    "usletter"
		    PaperUnits		    "inches"
		    ZoomFactor		    "100"
		    Block {
		    BlockType		    Inport
		    Name		    "In1"
		    Position		    [40, 93, 70, 107]
		    Port		    "1"
		    IconDisplay		    "Port number"
		    LatchInput		    off
		    }
		    Block {
		    BlockType		    Abs
		    Name		    "Abs"
		    Position		    [250, 85, 280, 115]
		    }
		    Block {
		    BlockType		    Constant
		    Name		    "Constant"
		    Position		    [515, 140, 545, 170]
		    Value		    ".6"
		    }
		    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"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    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"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    Block {
		    BlockType		    Gain
		    Name		    "Gain"
		    Position		    [510, 86, 555, 114]
		    Gain		    "1/Framesize"
		    Port {
		    PortNumber		    1
		    Name		    "Detected"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    Block {
		    BlockType		    RelationalOperator
		    Name		    "Relational\nOperator"
		    Position		    [620, 92, 650, 123]
		    Port {
		    PortNumber		    1
		    Name		    "Y/N"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    Block {
		    BlockType		    Sum
		    Name		    "Sum1"
		    Ports		    [1, 1]
		    Position		    [455, 90, 475, 110]
		    ShowName		    off
		    IconShape		    "round"
		    Inputs		    "1"
		    Port {
		    PortNumber		    1
		    Name		    "Detected"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		    }
		    }
		    Block {
		    BlockType		    Outport
		    Name		    "Out1"
		    Position		    [750, 103, 780, 117]
		    IconDisplay		    "Port number"
		    }
		    Line {
		    Name		    "Detected"
		    Labels		    [0, 0]
		    SrcBlock		    "Gain"
		    SrcPort		    1
		    DstBlock		    "Relational\nOperator"
		    DstPort		    1
		    }
		    Line {
		    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 {
		    N

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -