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

📄 fh_demo.mdl

📁 数字信号处理(机械工业出版社)的源码
💻 MDL
📖 第 1 页 / 共 3 页
字号:
	Line {
	  SrcBlock		  "DSB-SC AM\npassband1"
	  SrcPort		  1
	  DstBlock		  "Butterworth\nIIR BP Filter2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "DSB-SC AM\npassband2"
	  SrcPort		  1
	  DstBlock		  "Butterworth\nIIR BP Filter3"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Butterworth\nIIR BP Filter1"
	  SrcPort		  1
	  Points		  [20, 55]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Butterworth\nIIR BP Filter2"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Butterworth\nIIR BP Filter3"
	  SrcPort		  1
	  Points		  [20, -60]
	  DstBlock		  "Sum"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  DstBlock		  "DSB-SC AM\npassband1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [5, 0; 0, -55]
	  DstBlock		  "DSB-SC AM\npassband"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  Points		  [5, 0; 0, 60]
	  DstBlock		  "DSB-SC AM\npassband2"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [3, 1]
      Position		      [110, 47, 145, 103]
      ShowName		      off
      Inputs		      "3"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux3"
      Ports		      [2, 1]
      Position		      [695, 141, 730, 174]
      ShowName		      off
      Inputs		      "2"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux4"
      Ports		      [2, 1]
      Position		      [690, 76, 725, 109]
      ShowName		      off
      Inputs		      "2"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux5"
      Ports		      [2, 1]
      Position		      [690, 21, 725, 54]
      ShowName		      off
      Inputs		      "2"
    }
    Block {
      BlockType		      Reference
      Name		      "Pulses divide\nsame sample time"
      Ports		      [0, 1]
      Position		      [105, 150, 155, 200]
      ShowName		      off
      SourceBlock	      "com_sour/Pulses divide\nsample time"
      SourceType	      "Pulse generator"
      samp_time		      "2"
      out_divid		      "1"
      offset		      "0"
    }
    Block {
      BlockType		      SignalGenerator
      Name		      "Sawtooth\nwave"
      Position		      [25, 58, 70, 92]
      ForegroundColor	      "green"
      ShowName		      off
      WaveForm		      "sawtooth"
      Amplitude		      "1.000000"
      Frequency		      "3.000000"
      Units		      "rad/sec"
    }
    Block {
      BlockType		      SignalGenerator
      Name		      "Sin wave"
      Position		      [25, 128, 70, 162]
      ForegroundColor	      "red"
      ShowName		      off
      WaveForm		      "square"
      Amplitude		      "1.000000"
      Frequency		      "2.000000"
      Units		      "rad/sec"
    }
    Block {
      BlockType		      SignalGenerator
      Name		      "Square\nwave"
      Position		      [25, 13, 70, 47]
      ForegroundColor	      "yellow"
      ShowName		      off
      Amplitude		      "1.000000"
      Frequency		      "4.000000"
      Units		      "rad/sec"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Time delayed\ncontrol pulse"
      Ports		      [1, 1]
      Position		      [350, 152, 410, 198]
      TreatAsAtomicUnit	      off
      System {
	Name			"Time delayed\ncontrol pulse"
	Location		[191, 190, 608, 364]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "in_1"
	  Position		  [30, 35, 50, 55]
	  ShowName		  off
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [315, 100, 345, 130]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "++|"
	}
	Block {
	  BlockType		  UnitDelay
	  Name			  "Unit Delay"
	  Position		  [100, 28, 135, 62]
	  SampleTime		  "100*ts"
	}
	Block {
	  BlockType		  UnitDelay
	  Name			  "Unit Delay1"
	  Position		  [100, 98, 135, 132]
	  SampleTime		  "[100*ts, 50*ts]"
	}
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "Zero-Order\nHold"
	  Position		  [260, 29, 295, 61]
	  SampleTime		  "20*ts"
	}
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "Zero-Order\nHold1"
	  Position		  [260, 99, 295, 131]
	  SampleTime		  "[20*ts, 10*ts]"
	}
	Block {
	  BlockType		  Reference
	  Name			  "edge detector1"
	  Ports			  [1, 1]
	  Position		  [160, 24, 235, 66]
	  SourceBlock		  "com_util/Rising edge\ndetector"
	  SourceType		  "Edge detection"
	  thld			  "0.5"
	}
	Block {
	  BlockType		  Reference
	  Name			  "edge detector2"
	  Ports			  [1, 1]
	  Position		  [160, 94, 235, 136]
	  SourceBlock		  "com_util/Rising edge\ndetector"
	  SourceType		  "Edge detection"
	  thld			  "0.5"
	}
	Block {
	  BlockType		  Outport
	  Name			  "out_1"
	  Position		  [365, 105, 385, 125]
	  ShowName		  off
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "out_1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold1"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "edge detector2"
	  SrcPort		  1
	  DstBlock		  "Zero-Order\nHold1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold"
	  SrcPort		  1
	  Points		  [30, 0]
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "edge detector1"
	  SrcPort		  1
	  DstBlock		  "Zero-Order\nHold"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "in_1"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, 70]
	    DstBlock		    "Unit Delay1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Unit Delay"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Unit Delay"
	  SrcPort		  1
	  DstBlock		  "edge detector1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Unit Delay1"
	  SrcPort		  1
	  DstBlock		  "edge detector2"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Triggered\nsignal switch"
      Ports		      [2, 1]
      Position		      [185, 64, 240, 111]
      SourceBlock	      "com_mlac/Triggered\nsignal switch"
      SourceType	      "Vector signal re-distribution"
      sw		      "[1 2 3;2 3 1;3 1 2]"
      ke		      "[-1 -1 -1]"
      in		      "[0 0 0]"
      tt		      ".1"
    }
    Block {
      BlockType		      Reference
      Name		      "Triggered\nsignal switch1"
      Ports		      [2, 1]
      Position		      [530, 78, 590, 122]
      SourceBlock	      "com_mlac/Triggered\nsignal switch"
      SourceType	      "Vector signal re-distribution"
      sw		      "[0 0 0;1 2 3;0 0 0;3 1 2;0 0 0;2 3 1]"
      ke		      "[1 1 1]"
      in		      "[0 0 0]"
      tt		      ".1"
    }
    Block {
      BlockType		      Scope
      Name		      "element 1"
      Ports		      [1]
      Position		      [750, 24, 775, 56]
      Location		      [56, 264, 287, 471]
      Open		      off
      NumInputPorts	      "1"
      TickLabels	      "off"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "10"
      YMin		      "-1.5"
      YMax		      "1.5"
      DataFormat	      "Array"
    }
    Block {
      BlockType		      Scope
      Name		      "element 2"
      Ports		      [1]
      Position		      [750, 79, 775, 111]
      Location		      [295, 265, 545, 472]
      Open		      off
      NumInputPorts	      "1"
      TickLabels	      "off"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "10"
      YMin		      "-1.5"
      YMax		      "1.5"
      DataFormat	      "Array"
    }
    Block {
      BlockType		      Scope
      Name		      "element 3"
      Ports		      [1]
      Position		      [750, 144, 775, 176]
      Location		      [537, 262, 786, 468]
      Open		      off
      NumInputPorts	      "1"
      TickLabels	      "off"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      TimeRange		      "10"
      YMin		      "-1.5"
      YMax		      "1.5"
      DataFormat	      "Array"
    }
    Line {
      SrcBlock		      "Pulses divide\nsame sample time"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"Triggered\nsignal switch"
	DstPort			2
      }
      Branch {
	DstBlock		"Time delayed\ncontrol pulse"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      Points		      [15, 0; 0, -35]
      DstBlock		      "Mux5"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      3
      Points		      [15, 0; 0, 30]
      DstBlock		      "Mux3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sawtooth\nwave"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	Points			[0, -35; 575, 0; 0, 45]
	DstBlock		"Mux4"
	DstPort			1
      }
      Branch {
	DstBlock		"Mux1"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Square\nwave"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	Points			[0, 25]
	DstBlock		"Mux1"
	DstPort			1
      }
      Branch {
	DstBlock		"Mux5"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Sin wave"
      SrcPort		      1
      Points		      [15, 0; 0, 0]
      Branch {
	Points			[0, -50]
	DstBlock		"Mux1"
	DstPort			3
      }
      Branch {
	Points			[0, 85; 580, 0; 0, -65]
	DstBlock		"Mux3"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      2
      DstBlock		      "Mux4"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Triggered\nsignal switch1"
      SrcPort		      1
      DstBlock		      "Demux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux5"
      SrcPort		      1
      DstBlock		      "element 1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux4"
      SrcPort		      1
      DstBlock		      "element 2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux3"
      SrcPort		      1
      DstBlock		      "element 3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Time delayed\ncontrol pulse"
      SrcPort		      1
      Points		      [100, 0]
      DstBlock		      "Triggered\nsignal switch1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Frequency division\nthree-signal demux"
      SrcPort		      1
      DstBlock		      "Triggered\nsignal switch1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Triggered\nsignal switch"
      SrcPort		      1
      DstBlock		      "Frequency division\nthree-signal mux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      DstBlock		      "Triggered\nsignal switch"
      DstPort		      1
    }
    Line {
      SrcBlock		      "AWGN\nchannel"
      SrcPort		      1
      DstBlock		      "Frequency division\nthree-signal demux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Frequency division\nthree-signal mux"
      SrcPort		      1
      DstBlock		      "AWGN\nchannel"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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