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

📄 ch6example13.mdl

📁 清华大学出版社 邵玉斌编写的《通信系统建模与仿真实例分析》一书的所有MATLAB和SIMULINK代码
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      sample_time	      "1e-3"
    }
    Block {
      BlockType		      Fcn
      Name		      "Fcn"
      Position		      [70, 13, 240, 47]
      Expr		      "sin(2*pi*50*u)+0.5*sin(2*pi*150*u)"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [2, 1]
      Position		      [495, 61, 500, 99]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [2, 1]
      Position		      [560, 231, 565, 269]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Relay
      Name		      "Relay"
      Position		      [95, 115, 125, 145]
      OnSwitchValue	      "0"
      OffSwitchValue	      "0"
      OnOutputValue	      "0.4"
      OffOutputValue	      "-0.4"
    }
    Block {
      BlockType		      Relay
      Name		      "Relay1"
      Position		      [215, 115, 245, 145]
      OnSwitchValue	      "0"
      OffSwitchValue	      "0"
    }
    Block {
      BlockType		      Relay
      Name		      "Relay2"
      Position		      [300, 115, 330, 145]
      OnSwitchValue	      "0.5"
      OffSwitchValue	      "0.5"
      OnOutputValue	      "0.4"
      OffOutputValue	      "-0.4"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [2]
      Position		      [600, 101, 630, 134]
      Location		      [532, 337, 986, 669]
      Open		      on
      NumInputPorts	      "2"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      TimeRange		      "0.02"
      YMin		      "-2~-1"
      YMax		      "2~2"
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope2"
      Ports		      [2]
      Position		      [600, 241, 630, 274]
      Location		      [63, 338, 517, 670]
      Open		      on
      NumInputPorts	      "2"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      TimeRange		      "0.02"
      YMin		      "-2~-1"
      YMax		      "2~2"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [45, 120, 65, 140]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum1"
      Ports		      [2, 1]
      Position		      [170, 160, 190, 190]
      ShowName		      off
      Inputs		      "|++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum2"
      Ports		      [2, 1]
      Position		      [370, 115, 390, 145]
      ShowName		      off
      Inputs		      "|++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Terminator
      Name		      "Terminator"
      Position		      [315, 280, 335, 300]
    }
    Block {
      BlockType		      Terminator
      Name		      "Terminator1"
      Position		      [490, 270, 510, 290]
    }
    Block {
      BlockType		      UnitDelay
      Name		      "Unit Delay"
      Position		      [390, 160, 425, 200]
      Orientation	      "left"
      FontSize		      10
      SampleTime	      "1e-3"
    }
    Block {
      BlockType		      UnitDelay
      Name		      "Unit Delay1"
      Position		      [90, 195, 125, 235]
      Orientation	      "left"
      FontSize		      10
      SampleTime	      "1e-3"
    }
    Block {
      BlockType		      ZeroOrderHold
      Name		      "Zero-Order\nHold采样"
      Position		      [165, 51, 200, 89]
      Orientation	      "left"
      SampleTime	      "1e-3"
    }
    Line {
      SrcBlock		      "Clock"
      SrcPort		      1
      DstBlock		      "Fcn"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "Relay"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Relay"
      SrcPort		      1
      Points		      [0, 0; 25, 0]
      Branch {
	DstBlock		"Sum1"
	DstPort			1
      }
      Branch {
	DstBlock		"Relay1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Sum1"
      SrcPort		      1
      Points		      [10, 0; 0, 40]
      DstBlock		      "Unit Delay1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Relay1"
      SrcPort		      1
      Points		      [0, 0; 15, 0]
      Branch {
	DstBlock		"Relay2"
	DstPort			1
      }
      Branch {
	Points			[0, 90; 255, 0; 0, -95]
	DstBlock		"Scope1"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Sum2"
      SrcPort		      1
      Points		      [0, 0; 55, 0]
      Branch {
	Points			[0, 50]
	DstBlock		"Unit Delay"
	DstPort			1
      }
      Branch {
	Points			[30, 0]
	DstBlock		"Mux"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Relay2"
      SrcPort		      1
      DstBlock		      "Sum2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      Points		      [15, 0; 0, 30]
      DstBlock		      "Scope1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Unit Delay"
      SrcPort		      1
      Points		      [-30, 0]
      DstBlock		      "Sum2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Unit Delay1"
      SrcPort		      1
      Points		      [-30, 0; 0, -30]
      Branch {
	DstBlock		"Sum"
	DstPort			2
      }
      Branch {
	DstBlock		"Sum1"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Fcn"
      SrcPort		      1
      Points		      [10, 0; 0, 40]
      Branch {
	DstBlock		"Zero-Order\nHold采样"
	DstPort			1
      }
      Branch {
	Points			[215, 0]
	Branch {
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, -35; 75, 0]
	  DstBlock		  "Mux1"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "DPCM\nEncoder"
      SrcPort		      1
      Points		      [65, 0]
      Branch {
	DstBlock		"DPCM\nDecoder"
	DstPort			1
      }
      Branch {
	Points			[0, 50; 220, 0; 0, -55]
	DstBlock		"Scope2"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "DPCM\nEncoder"
      SrcPort		      2
      DstBlock		      "Terminator"
      DstPort		      1
    }
    Line {
      SrcBlock		      "DPCM\nDecoder"
      SrcPort		      2
      DstBlock		      "Terminator1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "DPCM\nDecoder"
      SrcPort		      1
      DstBlock		      "Mux1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      DstBlock		      "Scope2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Zero-Order\nHold采样"
      SrcPort		      1
      Points		      [-150, 0; 0, 60]
      Branch {
	Points			[0, 150]
	DstBlock		"DPCM\nEncoder"
	DstPort			1
      }
      Branch {
	DstBlock		"Sum"
	DstPort			1
      }
    }
    Annotation {
      Name		      "增量调制编解码测试模型\n文件名:ch6example13.md"
"l"
      Position		      [88, 311]
      DropShadow	      on
      FontName		      "Arial"
      FontSize		      12
    }
  }
}

⌨️ 快捷键说明

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