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

📄 ch7example11.mdl

📁 清华大学出版社 邵玉斌编写的《通信系统建模与仿真实例分析》一书的所有MATLAB和SIMULINK代码
💻 MDL
📖 第 1 页 / 共 5 页
字号:
      BlockType		      Relay
      Name		      "Relay\n单极性"
      Position		      [645, 235, 675, 265]
      Orientation	      "left"
      OnSwitchValue	      "0.5"
      OffSwitchValue	      "0.5"
      Port {
	PortNumber		1
	Name			"收"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Relay
      Name		      "Relay\n判决"
      Position		      [630, 60, 660, 90]
      OnSwitchValue	      "0"
      OffSwitchValue	      "0"
      OffOutputValue	      "-1"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [2]
      Position		      [290, 271, 320, 304]
      Location		      [463, 522, 787, 715]
      Open		      off
      NumInputPorts	      "2"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      TimeRange		      "0.04"
      YMin		      "-2~-2"
      YMax		      "2~2"
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem\n定时提取"
      Ports		      [1, 1]
      Position		      [390, 118, 440, 162]
      TreatAsAtomicUnit	      off
      System {
	Name			"Subsystem\n定时提取"
	Location		[65, 293, 958, 736]
	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, 93, 45, 107]
	}
	Block {
	  BlockType		  Abs
	  Name			  "Abs\n提取2次谐波"
	  Position		  [200, 95, 230, 125]
	}
	Block {
	  BlockType		  Reference
	  Name			  "Counter\n2分频"
	  Ports			  [1, 1]
	  Position		  [495, 86, 545, 144]
	  SourceBlock		  "dspswit3/Counter"
	  SourceType		  "Counter"
	  Direction		  "Up"
	  CountEvent		  "Rising edge"
	  CounterSize		  "User defined"
	  MaxCount		  "1"
	  InitialCount		  "0"
	  Output		  "Count"
	  HitValue		  "0"
	  ResetInput		  off
	  SamplesPerFrame	  "1"
	  Ts			  "1"
	  CntDtype		  "Double"
	  HitDtype		  "Logical"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Digital\nFilter Design"
	  Ports			  [1, 1]
	  Position		  [255, 82, 320, 138]
	  UserDataPersistent	  on
	  UserData		  "DataTag0"
	  SourceBlock		  "dsparch4/Digital\nFilter Design"
	  SourceType		  "Digital Filter Design"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Discrete-Time\nVCO"
	  Ports			  [1, 1]
	  Position		  [360, 163, 440, 207]
	  Orientation		  "left"
	  FontName		  "Arial"
	  SourceBlock		  "commcontsrc2/Discrete-Time\nVCO"
	  SourceType		  "Discrete-Time VCO"
	  Ac			  "1"
	  Fc			  "1998"
	  Kc			  "8"
	  Ph			  "0"
	  ts			  "1/10000"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Edge\nDetector"
	  Ports			  [1, 1]
	  Position		  [660, 95, 710, 135]
	  FontSize		  10
	  SourceBlock		  "dspswit3/Edge\nDetector"
	  SourceType		  "Edge Detector"
	}
	Block {
	  BlockType		  Gain
	  Name			  "Gain"
	  Position		  [135, 94, 180, 126]
	  Gain			  "100"
	}
	Block {
	  BlockType		  Ground
	  Name			  "Ground"
	  Position		  [20, 150, 40, 170]
	}
	Block {
	  BlockType		  Reference
	  Name			  "Integer Delay\n延时,对准眼图中心"
	  Ports			  [1, 1]
	  Position		  [575, 95, 630, 135]
	  SourceBlock		  "dspsigops/Integer Delay"
	  SourceType		  "Integer Delay"
	  delay			  "4"
	  ic			  "0"
	  reset_popup		  "None"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Manual Switch\n锁定切换"
	  Ports			  [2, 1]
	  Position		  [85, 92, 115, 128]
	  SourceBlock		  "simulink/Signal\nRouting/Manual Switch"
	  SourceType		  "Manual Switch"
	  sw			  "1"
	  action		  "0"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product\n鉴相"
	  Ports			  [2, 1]
	  Position		  [380, 101, 425, 134]
	  InputSameDT		  off
	}
	Block {
	  BlockType		  DiscretePulseGenerator
	  Name			  "Pulse\nGenerator1\n接收定时"
	  Position		  [585, 173, 630, 207]
	  Period		  "10"
	  SampleTime		  "1/10000"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Scope1测试用"
	  Ports			  [2]
	  Position		  [760, 162, 790, 198]
	  Location		  [32, 481, 407, 711]
	  Open			  off
	  NumInputPorts		  "2"
	  ZoomMode		  "xonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	    axes2		    "%<SignalLabel>"
	  }
	  List {
	    ListType		    SelectedSignals
	    axes1		    ""
	    axes2		    ""
	  }
	  TimeRange		  "0.012"
	  YMin			  "-1~-1"
	  YMax			  "2~2"
	  DataFormat		  "StructureWithTime"
	  LimitDataPoints	  off
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [755, 108, 785, 122]
	}
	Line {
	  SrcBlock		  "Abs\n提取2次谐波"
	  SrcPort		  1
	  DstBlock		  "Digital\nFilter Design"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Discrete-Time\nVCO"
	  SrcPort		  1
	  Points		  [-15, 0; 0, -60]
	  Branch {
	    DstBlock		    "Product\n鉴相"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -35; 140, 0]
	    DstBlock		    "Counter\n2分频"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Product\n鉴相"
	  SrcPort		  1
	  Points		  [30, 0; 0, 65]
	  DstBlock		  "Discrete-Time\nVCO"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Digital\nFilter Design"
	  SrcPort		  1
	  DstBlock		  "Product\n鉴相"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Gain"
	  SrcPort		  1
	  DstBlock		  "Abs\n提取2次谐波"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Manual Switch\n锁定切换"
	  SrcPort		  1
	  DstBlock		  "Gain"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Manual Switch\n锁定切换"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Ground"
	  SrcPort		  1
	  Points		  [10, 0; 0, -40]
	  DstBlock		  "Manual Switch\n锁定切换"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Counter\n2分频"
	  SrcPort		  1
	  DstBlock		  "Integer Delay\n延时,对准眼图中心"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Integer Delay\n延时,对准眼图中心"
	  SrcPort		  1
	  DstBlock		  "Edge\nDetector"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Pulse\nGenerator1\n接收定时"
	  SrcPort		  1
	  DstBlock		  "Scope1测试用"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Edge\nDetector"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    Points		    [0, 55]
	    DstBlock		    "Scope1测试用"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Out1"
	    DstPort		    1
	  }
	}
	Annotation {
	  Name			  "1900Hz~2100Hz"
	  Position		  [280, 176]
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem\n二进制信源"
      Ports		      [0, 2]
      Position		      [20, 30, 60, 90]
      TreatAsAtomicUnit	      off
      System {
	Name			"Subsystem\n二进制信源"
	Location		[177, 105, 669, 296]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Reference
	  Name			  "Bernoulli Binary\nGenerator"
	  Ports			  [0, 1]
	  Position		  [20, 28, 80, 72]
	  FontName		  "Arial"
	  SourceBlock		  "commrandsrc2/Bernoulli Binary\nGenerator"
	  SourceType		  "Bernoulli Binary Generator"
	  P			  "0.5"
	  seed			  "61"
	  Ts			  "1e-3"
	  frameBased		  off
	  sampPerFrame		  "1"
	  orient		  off
	}
	Block {
	  BlockType		  DiscreteFilter
	  Name			  "Discrete Filter\n根升余弦"
	  Position		  [250, 31, 395, 69]
	  Numerator		  "rcosine(1,10,'fir/sqrt',0.5,10)"
	  Denominator		  "1"
	  SampleTime		  "1/10000"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Unipolar to\nBipolar\nConverter"
	  Ports			  [1, 1]
	  Position		  [110, 26, 175, 74]
	  SourceBlock		  "commutil2/Unipolar to\nBipolar\nConverter"
	  SourceType		  "Unipolar to Bipolar Converter"
	  M			  "2"
	  polarity		  "Positive"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Upsample"
	  Ports			  [1, 1]
	  Position		  [195, 33, 230, 67]
	  SourceBlock		  "dspsigops/Upsample"
	  SourceType		  "Upsample"
	  N			  "10"
	  phase			  "0"
	  ic			  "0"
	  mode			  "Maintain input frame size"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [420, 43, 450, 57]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out2"
	  Position		  [420, 108, 450, 122]
	  Port			  "2"
	}
	Line {
	  SrcBlock		  "Bernoulli Binary\nGenerator"
	  SrcPort		  1
	  Points		  [5, 0; 5, 0]
	  Branch {
	    DstBlock		    "Unipolar to\nBipolar\nConverter"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 65]
	    DstBlock		    "Out2"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Unipolar to\nBipolar\nConverter"
	  SrcPort		  1
	  DstBlock		  "Upsample"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Upsample"
	  SrcPort		  1
	  DstBlock		  "Discrete Filter\n根升余弦"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Discrete Filter\n根升余弦"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem\n自适应均衡子系统"
      Ports		      [3, 1]
      Position		      [285, 34, 355, 96]
      TreatAsAtomicUnit	      off
      System {
	Name			"Subsystem\n自适应均衡子系统"
	Location		[356, 150, 946, 356]
	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, 28, 55, 42]
	}
	Block {
	  BlockType		  Inport
	  Name			  "In2Clock"
	  Position		  [25, 108, 55, 122]
	  Port			  "2"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In2Err"
	  Position		  [535, 168, 565, 182]
	  Orientation		  "left"
	  Port			  "3"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Subsystem"
	  Ports			  [3, 2]
	  Position		  [90, 29, 190, 71]
	  FontSize		  10
	  TreatAsAtomicUnit	  off
	  System {
	    Name		    "Subsystem"
	    Location		    [11, 94, 933, 394]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "InX(t)"
	      Position		      [40, 23, 70, 37]
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "InErr"
	      Position		      [40, 133, 70, 147]
	      Port		      "2"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "In2Clock"
	      Position		      [40, 93, 70, 107]
	      Port		      "3"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem"
	      Ports		      [3, 2]
	      Position		      [120, 24, 200, 66]
	      FontSize		      10
	      TreatAsAtomicUnit	      off
	      System {
		Name			"Subsystem"
		Location		[0, 82, 717, 382]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "InX(t)"
		  Position		  [40, 33, 70, 47]
		}
		Block {
		  BlockType		  Inport
		  Name			  "InErr"
		  Position		  [40, 133, 70, 147]
		  Port			  "2"
		}
		Block {
		  BlockType		  Inport
		  Name			  "In2Clock"
		  Position		  [40, 93, 70, 107]
		  Port			  "3"
		}
		Block {
		  BlockType		  Reference
		  Name			  "Integer Delay"
		  Ports			  [1, 1]
		  Position		  [285, 20, 340, 60]
		  SourceBlock		  "dspsigops/Integer Delay"
		  SourceType		  "Integer Delay"
		  delay			  "10"
		  ic			  "0"
		  reset_popup		  "None"
		}
		Block {
		  BlockType		  Product
		  Name			  "Product"
		  Ports			  [2, 1]
		  Position		  [155, 116, 185, 149]
		  InputSameDT		  off
		}
		Block {
		  BlockType		  Product
		  Name			  "Product1\n采样"
		  Ports			  [2, 1]
		  Position		  [100, 51, 130, 84]
		  InputSameDT		  off
		}
		Block {
		  BlockType		  Product
		  Name			  "Product2\n系数"
		  Ports			  [2, 1]
		  Position		  [300, 111, 330, 144]
		  InputSameDT		  off
		}
		Block {
		  BlockType		  Sum

⌨️ 快捷键说明

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