yangming.mdl

来自「这是一个用simulink编程」· MDL 代码 · 共 1,718 行 · 第 1/5 页

MDL
1,718
字号
      fracBitsMode	      "Best precision"
      numFracBits	      "15"
      ResetState	      "Restart at time zero"
    }
    Block {
      BlockType		      Reference
      Name		      "Sine Wave4"
      Ports		      [0, 1]
      Position		      [570, 433, 615, 477]
      SourceBlock	      "dspsrcs4/Sine Wave"
      SourceType	      "Sine Wave"
      Amplitude		      "1"
      Frequency		      "400"
      Phase		      "0"
      SampleMode	      "Discrete"
      OutComplex	      "Real"
      CompMethod	      "Trigonometric fcn"
      TableSize		      "Speed"
      SampleTime	      "1/24000"
      SamplesPerFrame	      "1"
      additionalParams	      off
      allowOverrides	      on
      dataType		      "double"
      wordLen		      "16"
      udDataType	      "sfix(16)"
      fracBitsMode	      "Best precision"
      numFracBits	      "15"
      ResetState	      "Restart at time zero"
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nScope"
      Ports		      [1]
      Position		      [840, 15, 875, 65]
      DialogController	      "dspdialog.SpectrumScope"
      DialogControllerArgs    "DataTag4"
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ShowPortLabels	      off
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "256"
      inpFftLenInherit	      off
      FFTlength		      "128"
      numAvg		      "20"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "get(0,'defaultfigureposition')"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-134.102118000659"
      YMax		      "27.764280050883"
      YLabel		      "Magnitude-squared, dB"
      LineProperties	      off
      LineColors	      "[1 0 0]"
      wintypeSpecScope	      "Hann"
      RsSpecScope	      "50"
      betaSpecScope	      "5"
      winsampSpecScope	      "Periodic"
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nScope1"
      Ports		      [1]
      Position		      [275, 185, 310, 235]
      DialogController	      "dspdialog.SpectrumScope"
      DialogControllerArgs    "DataTag5"
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ShowPortLabels	      off
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "256"
      inpFftLenInherit	      off
      FFTlength		      "128"
      numAvg		      "20"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "get(0,'defaultfigureposition')"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-134.102118000659"
      YMax		      "27.764280050883"
      YLabel		      "Magnitude-squared, dB"
      LineProperties	      off
      LineColors	      "[1 0 0]"
      wintypeSpecScope	      "Hann"
      RsSpecScope	      "50"
      betaSpecScope	      "5"
      winsampSpecScope	      "Periodic"
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nScope2"
      Ports		      [1]
      Position		      [555, 265, 590, 315]
      DialogController	      "dspdialog.SpectrumScope"
      DialogControllerArgs    "DataTag6"
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ShowPortLabels	      off
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "256"
      inpFftLenInherit	      off
      FFTlength		      "128"
      numAvg		      "20"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      off
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "get(0,'defaultfigureposition')"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-134.102118000659"
      YMax		      "27.764280050883"
      YLabel		      "Magnitude-squared, dB"
      LineProperties	      off
      LineColors	      "[1 0 0]"
      wintypeSpecScope	      "Hann"
      RsSpecScope	      "50"
      betaSpecScope	      "5"
      winsampSpecScope	      "Periodic"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum of\nElements"
      Ports		      [2, 1]
      Position		      [570, 182, 600, 213]
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutScaling	      "2^-10"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Reference
      Name		      "Upsample"
      Ports		      [1, 1]
      Position		      [390, 83, 425, 117]
      SourceBlock	      "dspsigops/Upsample"
      SourceType	      "Upsample"
      N			      "60"
      phase		      "0"
      ic		      "0"
      mode		      "Maintain input frame size"
    }
    Block {
      BlockType		      Reference
      Name		      "Upsample1"
      Ports		      [1, 1]
      Position		      [390, 133, 425, 167]
      SourceBlock	      "dspsigops/Upsample"
      SourceType	      "Upsample"
      N			      "60"
      phase		      "0"
      ic		      "0"
      mode		      "Maintain input frame size"
    }
    Line {
      SrcBlock		      "Random Integer\nGenerator"
      SrcPort		      1
      Points		      [25, 0]
      Branch {
	Points			[10, 0]
	DstBlock		"Rectangular QAM\nModulator\nBaseband"
	DstPort			1
      }
      Branch {
	Points			[0, 230; 750, 0]
	Branch {
	  DstBlock		  "Error Rate\nCalculation"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 80; 225, 0]
	  DstBlock		  "Scope"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Rectangular QAM\nModulator\nBaseband"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	DstBlock		"Complex to\nReal-Imag"
	DstPort			1
      }
      Branch {
	Points			[0, -70]
	DstBlock		"Discrete-Time\nScatter Plot\nScope"
	DstPort			1
      }
      Branch {
	Points			[0, 100]
	DstBlock		"Spectrum\nScope1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Complex to\nReal-Imag"
      SrcPort		      1
      DstBlock		      "Upsample"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sine Wave2"
      SrcPort		      1
      Points		      [75, 0]
      DstBlock		      "Product2"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sine Wave1"
      SrcPort		      1
      Points		      [0, -5]
      DstBlock		      "Product3"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Real-Imag to\nComplex"
      SrcPort		      1
      Points		      [10, 0; 0, -50; -105, 0; 0, -25]
      Branch {
	Points			[-50, 0]
	DstBlock		"Spectrum\nScope"
	DstPort			1
      }
      Branch {
	Points			[0, -25]
	DstBlock		"Rectangular QAM\nDemodulator\nBaseband"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Rectangular QAM\nDemodulator\nBaseband"
      SrcPort		      1
      Points		      [20, 0; 0, 200]
      Branch {
	Points			[0, 75]
	DstBlock		"Error Rate\nCalculation"
	DstPort			2
      }
      Branch {
	Points			[55, 0; 0, 305]
	DstBlock		"Scope"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Sum of\nElements"
      SrcPort		      1
      Points		      [5, 0]
      DstBlock		      "AWGN\nChannel"
      DstPort		      1
    }
    Line {
      SrcBlock		      "AWGN\nChannel"
      SrcPort		      1
      Points		      [85, 0; 0, 65; -50, 0; 0, 10]
      Branch {
	DstBlock		"Product2"
	DstPort			1
      }
      Branch {
	Points			[-45, 0; 0, 125]
	DstBlock		"Product3"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Product2"
      SrcPort		      1
      DstBlock		      "Digital\nFilter Design3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Digital\nFilter Design3"
      SrcPort		      1
      Points		      [15, 0; 0, 10]
      DstBlock		      "Real-Imag to\nComplex"
      DstPort		      1
    }

⌨️ 快捷键说明

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