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

📄 ch6example10.mdl

📁 清华大学出版社 邵玉斌编写的《通信系统建模与仿真实例分析》一书的所有MATLAB和SIMULINK代码
💻 MDL
📖 第 1 页 / 共 2 页
字号:
	  SourceType		  "Frame Status Conversion"
	  growRefPort		  off
	  outframe		  "Frame-based"
	}
	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]
	  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]
	  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		  [600, 73, 630, 87]
	}
	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 {
	    DstBlock		    "Abs"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -50]
	    DstBlock		    "Relay"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Saturation"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Frame Status\nConversion"
	  SrcPort		  1
	  DstBlock		  "Buffer"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Buffer"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Frame Status\nConversion"
	  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]
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem\nPCM解码器"
      Ports		      [1, 1]
      Position		      [425, 20, 475, 80]
      TreatAsAtomicUnit	      off
      Port {
	PortNumber		1
	Name			"解码"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
      System {
	Name			"Subsystem\nPCM解码器"
	Location		[197, 300, 725, 482]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [15, 78, 45, 92]
	}
	Block {
	  BlockType		  Reference
	  Name			  "Bit to Integer\nConverter"
	  Ports			  [1, 1]
	  Position		  [255, 93, 335, 137]
	  SourceBlock		  "commutil2/Bit to Integer\nConverter"
	  SourceType		  "Bit to Integer Converter"
	  nbits			  "7"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Buffer1"
	  Ports			  [1, 1]
	  Position		  [60, 64, 100, 106]
	  SourceBlock		  "dspbuff3/Buffer"
	  SourceType		  "Buffer"
	  N			  "8"
	  V			  "0"
	  ic			  "0"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 8]
	  Position		  [180, 39, 185, 131]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "8"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain1"
	  Position		  [355, 97, 410, 133]
	  Gain			  "1/127"
	}
	Block {
	  BlockType		  Lookup
	  Name			  "Look-Up\nTable1"
	  Position		  [430, 95, 480, 135]
	  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		  [220, 50, 225, 130]
	  ShowName		  off
	  Inputs		  "7"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  Ports			  [2, 1]
	  Position		  [505, 91, 550, 124]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  Relay
	  Name			  "Relay"
	  Position		  [295, 25, 325, 55]
	  OnSwitchValue		  "0.5"
	  OffSwitchValue	  "0.5"
	  OffOutputValue	  "-1"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Reshape"
	  Ports			  [1, 1]
	  Position		  [125, 73, 155, 97]
	  SourceBlock		  "simulink/Math\nOperations/Reshape"
	  SourceType		  "Reshape"
	  OutputDimensionality	  "1-D array"
	  OutputDimensions	  "[1,1]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [570, 103, 600, 117]
	}
	Line {
	  SrcBlock		  "Bit to Integer\nConverter"
	  SrcPort		  1
	  DstBlock		  "Gain1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Look-Up\nTable1"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Relay"
	  SrcPort		  1
	  Points		  [160, 0]
	  DstBlock		  "Product"
	  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
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Buffer1"
	  SrcPort		  1
	  DstBlock		  "Reshape"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Buffer1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Reshape"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Annotation {
	  Name			  "极性解码"
	  Position		  [382, 28]
	}
	Annotation {
	  Name			  "7Bit D/A"
	  Position		  [295, 174]
	}
	Annotation {
	  Name			  "减小样值范围"
	  Position		  [380, 158]
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "To Wave\nDevice1"
      Ports		      [1]
      Position		      [585, 25, 630, 75]
      FontSize		      10
      SourceBlock	      "dspwin32/To Wave\nDevice"
      SourceType	      "To Wave Device"
      bufDuration	      "2"
      initDelay		      "0.1"
      useDefaultDevice	      on
      userDeviceID	      "SigmaTel C-Major Audio"
      enable24Bit	      off
    }
    Line {
      Name		      "PCM"
      Labels		      [1, 0]
      SrcBlock		      "Subsystem\nPCM编码器"
      SrcPort		      1
      DstBlock		      "Binary Symmetric\nChannel"
      DstPort		      1
    }
    Line {
      Name		      "原信号"
      Labels		      [0, 0]
      SrcBlock		      "From Wave\nFile"
      SrcPort		      1
      DstBlock		      "Gain"
      DstPort		      1
    }
    Line {
      Name		      "解码"
      Labels		      [0, 0]
      SrcBlock		      "Subsystem\nPCM解码器"
      SrcPort		      1
      DstBlock		      "Buffer2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Binary Symmetric\nChannel"
      SrcPort		      1
      DstBlock		      "Subsystem\nPCM解码器"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Buffer2"
      SrcPort		      1
      DstBlock		      "To Wave\nDevice1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      DstBlock		      "Subsystem\nPCM编码器"
      DstPort		      1
    }
    Annotation {
      Name		      "PCM传输误码与解码话音质量\n文件名:ch6example10"
".mdl"
      Position		      [99, 125]
      DropShadow	      on
      FontName		      "Arial"
      FontSize		      12
    }
  }
}

⌨️ 快捷键说明

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