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

📄 ch6example7.mdl

📁 清华大学出版社 邵玉斌编写的《通信系统建模与仿真实例分析》一书的所有MATLAB和SIMULINK代码
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      Name		      "Demux"
      Ports		      [1, 8]
      Position		      [195, 64, 200, 156]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "8"
    }
    Block {
      BlockType		      Display
      Name		      "Display"
      Ports		      [1]
      Position		      [615, 120, 705, 150]
      FontSize		      10
      Decimation	      "1"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain1"
      Position		      [370, 122, 425, 158]
      Gain		      "1/127"
    }
    Block {
      BlockType		      Lookup
      Name		      "Look-Up\nTable1"
      Position		      [450, 120, 500, 160]
      InputValues	      "[0:1/8:1]"
      OutputValues	      "[0,1/128,1/64,1/32,1/16,1/8,1/4,1/2,1]"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [7, 1]
      Position		      [235, 75, 240, 155]
      ShowName		      off
      Inputs		      "7"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      Ports		      [2, 1]
      Position		      [535, 116, 580, 149]
      InputSameDT	      off
    }
    Block {
      BlockType		      Relay
      Name		      "Relay"
      Position		      [310, 50, 340, 80]
      OnSwitchValue	      "0.5"
      OffSwitchValue	      "0.5"
      OffOutputValue	      "-1"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem\nPCM编码器"
      Ports		      [1, 1]
      Position		      [95, 79, 145, 141]
      TreatAsAtomicUnit	      off
      System {
	Name			"Subsystem\nPCM编码器"
	Location		[97, 295, 632, 471]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [25, 85, 55, 99]
	}
	Block {
	  BlockType		  Abs
	  Name			  "Abs"
	  Position		  [140, 74, 165, 106]
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [240, 74, 280, 106]
	  Gain			  "127"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Integer to Bit\nConverter"
	  Ports			  [1, 1]
	  Position		  [350, 69, 430, 111]
	  FontSize		  10
	  SourceBlock		  "commutil2/Integer to Bit\nConverter"
	  SourceType		  "Integer to Bit Converter"
	  nbits			  "7"
	}
	Block {
	  BlockType		  Lookup
	  Name			  "Look-Up\nTable"
	  Position		  [180, 69, 220, 111]
	  FontSize		  10
	  InputValues		  "[-1,-1/2,-1/4,-1/8,-1/16,-1/32,-1/64,-1/128"
",0,1/128,1/64,1/32,1/16,1/8,1/4,1/2,1]"
	  OutputValues		  "[-1:1/8:1]"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1]
	  Position		  [450, 61, 455, 99]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Quantizer
	  Name			  "Quantizer"
	  Position		  [300, 75, 330, 105]
	  QuantizationInterval	  "1"
	}
	Block {
	  BlockType		  Relay
	  Name			  "Relay"
	  Position		  [140, 25, 170, 55]
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Saturation"
	  Position		  [80, 75, 110, 105]
	  UpperLimit		  "1"
	  LowerLimit		  "-1"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [480, 75, 510, 89]
	}
	Line {
	  SrcBlock		  "Look-Up\nTable"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Quantizer"
	  SrcPort		  1
	  DstBlock		  "Integer to Bit\nConverter"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Quantizer"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Abs"
	  SrcPort		  1
	  DstBlock		  "Look-Up\nTable"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Relay"
	  SrcPort		  1
	  Points		  [260, 0]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integer to Bit\nConverter"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Saturation"
	  SrcPort		  1
	  Points		  [0, 0; 5, 0]
	  Branch {
	    Points		    [5, 0]
	    DstBlock		    "Abs"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -50]
	    DstBlock		    "Relay"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Saturation"
	  DstPort		  1
	}
	Annotation {
	  Name			  "0到127内整数\n7bit A/D"
	  Position		  [391, 151]
	}
	Annotation {
	  Name			  "[-1,1]限幅器"
	  Position		  [91, 124]
	}
	Annotation {
	  Name			  "极性码"
	  Position		  [281, 34]
	}
	Annotation {
	  Name			  "13折线压缩"
	  Position		  [199, 142]
	}
	Annotation {
	  Name			  "量化间距为1"
	  Position		  [316, 132]
	}
      }
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      DstBlock		      "Subsystem\nPCM编码器"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Bit to Integer\nConverter"
      SrcPort		      1
      DstBlock		      "Gain1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Look-Up\nTable1"
      SrcPort		      1
      Points		      [15, 0]
      DstBlock		      "Product"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Relay"
      SrcPort		      1
      Points		      [175, 0]
      DstBlock		      "Product"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Product"
      SrcPort		      1
      DstBlock		      "Display"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Subsystem\nPCM编码器"
      SrcPort		      1
      DstBlock		      "Demux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      Points		      [0, 25]
      DstBlock		      "Bit to Integer\nConverter"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      1
      Points		      [15, 0; 0, -10]
      DstBlock		      "Relay"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      2
      DstBlock		      "Mux"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      3
      DstBlock		      "Mux"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      8
      DstBlock		      "Mux"
      DstPort		      7
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      7
      DstBlock		      "Mux"
      DstPort		      6
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      6
      DstBlock		      "Mux"
      DstPort		      5
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      5
      DstBlock		      "Mux"
      DstPort		      4
    }
    Line {
      SrcBlock		      "Demux"
      SrcPort		      4
      DstBlock		      "Mux"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Gain1"
      SrcPort		      1
      DstBlock		      "Look-Up\nTable1"
      DstPort		      1
    }
    Annotation {
      Name		      "13段折线A律PCM解码器\n文件名:ch6example7.mdl"
      Position		      [89, 195]
      DropShadow	      on
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "极性解码"
      Position		      [397, 53]
    }
    Annotation {
      Name		      "7Bit D/A"
      Position		      [310, 199]
    }
    Annotation {
      Name		      "减小样值范围"
      Position		      [395, 183]
    }
  }
}

⌨️ 快捷键说明

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