pm.mdl

来自「基于Simulink的模拟通信系统仿真」· MDL 代码 · 共 878 行 · 第 1/2 页

MDL
878
字号
      }
      YMin		      "-1000"
      YMax		      "1000"
      SaveName		      "ScopeData2"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope3"
      Ports		      [1]
      Position		      [665, 474, 695, 506]
      Location		      [121, 219, 794, 604]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      YMin		      "-2"
      YMax		      "2"
      SaveName		      "ScopeData3"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope4"
      Ports		      [1]
      Position		      [815, 469, 845, 501]
      Location		      [180, 508, 853, 893]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      YMin		      "-65000"
      YMax		      "10000"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope5"
      Ports		      [1]
      Position		      [970, 464, 1000, 496]
      Location		      [228, 591, 901, 976]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      YMin		      "-65000"
      YMax		      "10000"
      SaveName		      "ScopeData4"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope7"
      Ports		      [2]
      Position		      [205, 476, 235, 509]
      Location		      [360, 556, 1033, 941]
      Open		      off
      NumInputPorts	      "2"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
      }
      YMin		      "-0.00025~-5"
      YMax		      "0.00325~5"
      SaveName		      "ScopeData6"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope8"
      Ports		      [1]
      Position		      [250, 409, 280, 441]
      Location		      [42, 605, 715, 990]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
      }
      YMin		      "-0.25"
      YMax		      "3.25"
      SaveName		      "ScopeData7"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave"
      Position		      [15, 265, 45, 295]
      SineType		      "Time based"
      Frequency		      "100*2*pi"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave1"
      Position		      [350, 290, 380, 320]
      SineType		      "Time based"
      Frequency		      "1000*2*pi"
      Phase		      "pi/2"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave2"
      Position		      [350, 440, 380, 470]
      SineType		      "Time based"
      Frequency		      "1000*2*pi"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nScope"
      Ports		      [1]
      Position		      [740, 205, 775, 255]
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ScopeProperties	      off
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "256"
      inpFftLenInherit	      on
      FFTlength		      "1024"
      numAvg		      "10"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "get(0,'defaultfigureposition')"
      AxisProperties	      on
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      off
      XIncr		      "2.5E-4"
      XLabel		      "Samples"
      YUnits		      "Magnitude"
      YMin		      "-30"
      YMax		      "25"
      YLabel		      "Magnitude"
      LineProperties	      off
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nScope1"
      Ports		      [1]
      Position		      [1230, 190, 1265, 240]
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "256"
      Overlap		      "16"
      inpFftLenInherit	      on
      FFTlength		      "256"
      numAvg		      "2"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      on
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "get(0,'defaultfigureposition')"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      off
      XIncr		      "1/400"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-30"
      YMax		      "100"
      YLabel		      "Magnitude"
      LineProperties	      off
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [485, 290, 505, 310]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Block {
      BlockType		      Trigonometry
      Name		      "Trigonometric\nFunction"
      Ports		      [1, 1]
      Position		      [290, 235, 320, 265]
      Operator		      "cos"
    }
    Block {
      BlockType		      Trigonometry
      Name		      "Trigonometric\nFunction1"
      Ports		      [1, 1]
      Position		      [280, 345, 310, 375]
    }
    Block {
      BlockType		      ZeroOrderHold
      Name		      "Zero-Order\nHold"
      Position		      [605, 211, 640, 249]
      SampleTime	      "2.5e-4"
    }
    Block {
      BlockType		      ZeroOrderHold
      Name		      "Zero-Order\nHold1"
      Position		      [1120, 196, 1155, 234]
      SampleTime	      "1/400"
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      Points		      [0, 0; 45, 0]
      Branch {
	Points			[0, -110; 35, 0]
	DstBlock		"Zero-Order\nHold"
	DstPort			1
      }
      Branch {
	Points			[0, 60; 45, 0]
	Branch {
	  Points		  [0, 130]
	  DstBlock		  "Scope3"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, -10]
	  DstBlock		  "Derivative"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Zero-Order\nHold"
      SrcPort		      1
      DstBlock		      "Spectrum\nScope"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Derivative"
      SrcPort		      1
      Points		      [0, 10; 195, 0]
      Branch {
	DstBlock		"Saturation"
	DstPort			1
      }
      Branch {
	Labels			[1, 0]
	Points			[-135, 0; 0, 125]
	DstBlock		"Scope4"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Analog\nFilter Design"
      SrcPort		      1
      Points		      [55, 0]
      Branch {
	Points			[0, 295]
	DstBlock		"Scope1"
	DstPort			1
      }
      Branch {
	Points			[5, 0]
	Branch {
	  DstBlock		  "Scope2"
	  DstPort		  1
	}
	Branch {
	  Points		  [-5, 0]
	  DstBlock		  "Zero-Order\nHold1"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Saturation"
      SrcPort		      1
      Points		      [40, 0]
      Branch {
	DstBlock		"Analog\nFilter Design"
	DstPort			1
      }
      Branch {
	Points			[0, 120]
	DstBlock		"Scope5"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Zero-Order\nHold1"
      SrcPort		      1
      DstBlock		      "Spectrum\nScope1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sine Wave1"
      SrcPort		      1
      Points		      [0, -40]
      DstBlock		      "Product"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sine Wave2"
      SrcPort		      1
      Points		      [0, -35]
      DstBlock		      "Product1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Product1"
      SrcPort		      1
      Points		      [35, 0]
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Product"
      SrcPort		      1
      Points		      [0, 40]
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sine Wave"
      SrcPort		      1
      Points		      [5, 0]
      Branch {
	Points			[0, 220]
	Branch {
	  Points		  [0, 170]
	  DstBlock		  "Scope1"
	  DstPort		  2
	}
	Branch {
	  DstBlock		  "Scope7"
	  DstPort		  2
	}
      }
      Branch {
	DstBlock		"Product2"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Trigonometric\nFunction1"
      SrcPort		      1
      Points		      [75, 0; 0, 45]
      DstBlock		      "Product1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Trigonometric\nFunction"
      SrcPort		      1
      DstBlock		      "Product"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Product2"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	Points			[25, 0]
	Branch {
	  Points		  [0, -40]
	  DstBlock		  "Trigonometric\nFunction"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 70]
	  DstBlock		  "Trigonometric\nFunction1"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, 135]
	DstBlock		"Scope8"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Constant"
      SrcPort		      1
      Points		      [5, 0; 0, -60]
      DstBlock		      "Product2"
      DstPort		      2
    }
  }
}

⌨️ 快捷键说明

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