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

📄 ch7example9.mdl

📁 清华大学出版社 邵玉斌编写的《通信系统建模与仿真实例分析》一书的所有MATLAB和SIMULINK代码
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      BlockType		      DiscreteFilter
      Name		      "Discrete Filter\n根升余弦1"
      Position		      [490, 21, 635, 59]
      Numerator		      "rcosine(1,10,'fir/sqrt',0.5,10)"
      Denominator	      "1"
      SampleTime	      "1/10000"
    }
    Block {
      BlockType		      Reference
      Name		      "Discrete-Time\nEye Diagram\nScope"
      Tag		      "EyeDiagram"
      Ports		      [1]
      Position		      [545, 141, 590, 189]
      SourceBlock	      "commsink2/Discrete-Time\nEye Diagram\nScope"
      SourceType	      "Discrete-Time Eye Diagram Scope"
      showPlotting	      on
      sampPerSymb	      "10"
      offsetEye		      "0"
      symbPerTrace	      "2"
      numTraces		      "80"
      numNewFrames	      "80"
      showRendering	      off
      LineStyles	      "-"
      LineColors	      "b"
      dupPoints		      on
      fading		      off
      render		      on
      AxisGrid		      on
      showAxes		      off
      yMin		      "-3.18660995688749"
      yMax		      "2.95435579470502"
      inphaseLabel	      "In-phase Amplitude"
      quadratureLabel	      "Quadrature Amplitude"
      showFigure	      off
      openScopeAtSimStart     on
      dispDiagram	      "In-phase Only"
      FrameNumber	      on
      FigPos		      "[76 76 560 487]"
      figTitle		      "Eye Diagram"
      block_type_	      "eye"
      numLinesMax	      "8"
    }
    Block {
      BlockType		      Display
      Name		      "Display"
      Ports		      [1]
      Position		      [535, 231, 625, 299]
      FontSize		      10
      Decimation	      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Downsample"
      Ports		      [1, 1]
      Position		      [345, 148, 380, 182]
      SourceBlock	      "dspsigops/Downsample"
      SourceType	      "Downsample"
      N			      "10"
      phase		      "0"
      ic		      "0"
      smode		      "Allow multirate"
      fmode		      "Maintain input frame size"
      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		      Reference
      Name		      "Error Rate\nCalculation"
      Ports		      [2, 1]
      Position		      [440, 237, 515, 288]
      FontSize		      10
      SourceBlock	      "commsink2/Error Rate\nCalculation"
      SourceType	      "Error Rate Calculation"
      N			      "0"
      st_delay		      "1"
      cp_mode		      "Entire frame"
      subframe		      "[]"
      PMode		      "Port"
      WsName		      "ErrorVec"
      RsMode2		      off
      stop		      off
      numErr		      "100"
      maxBits		      "1e6"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer Delay\n延迟22个时隙"
      Ports		      [1, 1]
      Position		      [275, 255, 330, 295]
      FontSize		      10
      SourceBlock	      "dspsigops/Integer Delay"
      SourceType	      "Integer Delay"
      delay		      "22"
      ic		      "0"
      reset_popup	      "None"
      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		      Product
      Name		      "Product1\n采样"
      Ports		      [2, 1]
      Position		      [120, 146, 165, 179]
      InputSameDT	      off
    }
    Block {
      BlockType		      DiscretePulseGenerator
      Name		      "Pulse\nGenerator1\n接收恢复定时"
      Position		      [35, 153, 80, 187]
      Period		      "10"
      SampleTime	      "1/10000"
    }
    Block {
      BlockType		      RandomNumber
      Name		      "Random\nNumber"
      Position		      [405, 50, 435, 80]
      Variance		      "0.05"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Relay
      Name		      "Relay\n判决"
      Position		      [200, 150, 230, 180]
      OnSwitchValue	      "0.5"
      OffSwitchValue	      "0.5"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [2]
      Position		      [450, 156, 480, 189]
      Location		      [49, 437, 373, 630]
      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		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [440, 30, 460, 50]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Triggered\nSubsystem\n保持"
      Ports		      [1, 1, 0, 1]
      Position		      [265, 144, 310, 186]
      NamePlacement	      "alternate"
      ShowName		      off
      TreatAsAtomicUnit	      on
      System {
	Name			"Triggered\nSubsystem\n保持"
	Location		[401, 346, 899, 646]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "In1"
	  Position		  [110, 103, 140, 117]
	}
	Block {
	  BlockType		  TriggerPort
	  Name			  "Trigger"
	  Ports			  []
	  Position		  [225, 60, 245, 80]
	}
	Block {
	  BlockType		  Outport
	  Name			  "Out1"
	  Position		  [360, 103, 390, 117]
	}
	Line {
	  SrcBlock		  "In1"
	  SrcPort		  1
	  DstBlock		  "Out1"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Unipolar to\nBipolar\nConverter"
      Ports		      [1, 1]
      Position		      [105, 16, 170, 64]
      FontSize		      10
      SourceBlock	      "commutil2/Unipolar to\nBipolar\nConverter"
      SourceType	      "Unipolar to Bipolar Converter"
      M			      "2"
      polarity		      "Positive"
    }
    Block {
      BlockType		      Reference
      Name		      "Upsample"
      Ports		      [1, 1]
      Position		      [190, 23, 225, 57]
      SourceBlock	      "dspsigops/Upsample"
      SourceType	      "Upsample"
      N			      "10"
      phase		      "0"
      ic		      "0"
      mode		      "Maintain input frame size"
    }
    Line {
      SrcBlock		      "Bernoulli Binary\nGenerator"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	DstBlock		"Unipolar to\nBipolar\nConverter"
	DstPort			1
      }
      Branch {
	Points			[0, 65; -70, 0; 0, 170]
	DstBlock		"Integer Delay\n延迟22个时隙"
	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		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Random\nNumber"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "Discrete Filter\n根升余弦1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Pulse\nGenerator1\n接收恢复定时"
      SrcPort		      1
      Points		      [-15, 0; 30, 0]
      Branch {
	DstBlock		"Product1\n采样"
	DstPort			2
      }
      Branch {
	Points			[0, 46; 185, 0]
	DstBlock		"Triggered\nSubsystem\n保持"
	DstPort			trigger
      }
    }
    Line {
      SrcBlock		      "Product1\n采样"
      SrcPort		      1
      DstBlock		      "Relay\n判决"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Discrete Filter\n根升余弦1"
      SrcPort		      1
      Points		      [15, 0; 0, 75; -145, 0; 0, 0]
      Branch {
	Points			[0, 0; -410, 0; 0, 40]
	DstBlock		"Product1\n采样"
	DstPort			1
      }
      Branch {
	Points			[0, 50]
	DstBlock		"Discrete-Time\nEye Diagram\nScope"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Triggered\nSubsystem\n保持"
      SrcPort		      1
      DstBlock		      "Downsample"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Relay\n判决"
      SrcPort		      1
      DstBlock		      "Triggered\nSubsystem\n保持"
      DstPort		      1
    }
    Line {
      Name		      "收"
      Labels		      [0, 0]
      SrcBlock		      "Downsample"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	DstBlock		"Scope1"
	DstPort			1
      }
      Branch {
	Points			[0, 85]
	DstBlock		"Error Rate\nCalculation"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Error Rate\nCalculation"
      SrcPort		      1
      DstBlock		      "Display"
      DstPort		      1
    }
    Line {
      Name		      "发"
      Labels		      [0, 0]
      SrcBlock		      "Integer Delay\n延迟22个时隙"
      SrcPort		      1
      Points		      [85, 0]
      Branch {
	DstBlock		"Error Rate\nCalculation"
	DstPort			2
      }
      Branch {
	Points			[0, -95]
	DstBlock		"Scope1"
	DstPort			2
      }
    }
    Annotation {
      Name		      "高斯信道基带传输系统测试模型\n文件名:ch7exampl"
"e9.mdl"
      Position		      [114, 301]
      DropShadow	      on
      FontName		      "Arial"
      FontSize		      12
    }
    Annotation {
      Name		      "Triggered\nSubsystem\n保持"
      Position		      [320, 218]
    }
    Annotation {
      Name		      "发送数据"
      Position		      [161, 264]
    }
  }
}

⌨️ 快捷键说明

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