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

📄 adnc_lms1.mdl

📁 数字信号处理(机械工业出版社)的源码
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      Ports		      [1]
      Position		      [400, 200, 435, 250]
      SourceBlock	      "dspsnks4/Vector\nScope"
      SourceType	      "Vector Scope"
      ScopeProperties	      on
      Domain		      "User-defined"
      HorizSpan		      "1"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      on
      AxisLegend	      off
      AxisZoom		      on
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "[66 155 329 270]"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-0.2"
      YMax		      "0.6"
      YLabel		      "Filter Coefficients"
      LineProperties	      off
      LineDisables	      "on"
      LineStyles	      ":"
      LineMarkers	      "."
      LineColors	      "[0 0 1]"
    }
    Block {
      BlockType		      Reference
      Name		      "Flip"
      Ports		      [1, 1]
      Position		      [335, 211, 370, 239]
      SourceBlock	      "dspindex/Flip"
      SourceType	      "Flip"
      dim		      "Columns"
    }
    Block {
      BlockType		      Reference
      Name		      "Freq\nResponse"
      Ports		      [1]
      Position		      [335, 260, 370, 310]
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ScopeProperties	      on
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      off
      BufferSize	      "128"
      Overlap		      "64"
      inpFftLenInherit	      on
      FFTlength		      "256"
      numAvg		      "2"
      DisplayProperties	      off
      AxisGrid		      on
      Memory		      off
      FrameNumber	      off
      AxisLegend	      off
      AxisZoom		      on
      OpenScopeAtSimStart     on
      OpenScopeImmediately    off
      FigPos		      "[404 155 378 270]"
      AxisProperties	      off
      XUnits		      "Hertz"
      XRange		      "[0...Fs/2]"
      InheritXIncr	      on
      XIncr		      "1"
      XLabel		      "Samples"
      YUnits		      "dB"
      YMin		      "-60"
      YMax		      "0"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
      LineDisables	      "on"
      LineStyles	      "-"
      LineColors	      "[0 0 1]"
    }
    Block {
      BlockType		      Reference
      Name		      "LMS\nAdaptive Filter"
      Ports		      [2, 2]
      Position		      [200, 181, 285, 239]
      SourceBlock	      "dspobslib/LMS\nAdaptive Filter"
      SourceType	      "LMS Adaptive Filter"
      n			      "32"
      mu		      "0.5"
      ic		      "0.0"
      leakage		      "1.0"
      normalized	      on
      Adapt		      off
      RstPort		      "None"
    }
    Block {
      BlockType		      Reference
      Name		      "Noise"
      Ports		      [0, 1]
      Position		      [35, 54, 75, 96]
      Diagnostics	      "AllowInheritedTsInSrc"
      SourceBlock	      "dspsrcs4/Random\nSource"
      SourceType	      "Random Source"
      SrcType		      "Gaussian"
      NormMethod	      "Ziggurat"
      CltLength		      "12"
      Min		      "0"
      Max		      "1"
      Mean		      "0"
      Var		      "1"
      RepMode		      "Specify seed"
      Seed		      "[23341]"
      Inherit		      off
      SampMode		      "Discrete"
      SampTime		      "1"
      SampFrame		      "1"
      DataType		      "Double"
      OutComplex	      "Real"
    }
    Block {
      BlockType		      Scope
      Name		      "Results"
      Ports		      [3]
      Position		      [485, 70, 515, 110]
      Location		      [612, 88, 989, 424]
      Open		      on
      NumInputPorts	      "3"
      List {
	ListType		AxesTitles
	axes1			"w(n)"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
	axes3			""
      }
      TimeRange		      "128"
      YMin		      "-2.5~-5~-2.5"
      YMax		      "2.5~5~3"
      DataFormat	      "Array"
    }
    Block {
      BlockType		      Reference
      Name		      "Sine Wave"
      Ports		      [0, 1]
      Position		      [35, 121, 75, 159]
      SourceBlock	      "dspsrcs4/Sine Wave"
      SourceType	      "Sine Wave"
      Amplitude		      "2"
      Frequency		      "0.05"
      Phase		      "0"
      SampleMode	      "Discrete"
      OutComplex	      "Real"
      CompMethod	      "Trigonometric fcn"
      TableSize		      "Speed"
      SampleTime	      "1"
      SamplesPerFrame	      "1"
      additionalParams	      on
      allowOverrides	      on
      dataType		      "double"
      wordLen		      "16"
      udDataType	      "sfix(16)"
      fracBitsMode	      "Best precision"
      numFracBits	      "15"
      ResetState	      "Restart at time zero"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum2"
      Ports		      [2, 1]
      Position		      [160, 130, 180, 150]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "++|"
      Port {
	PortNumber		1
	Name			"w(n)+s(n)"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum3"
      Ports		      [2, 1]
      Position		      [380, 130, 400, 150]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|+-"
      Port {
	PortNumber		1
	Name			"Error Signal"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Line {
      SrcBlock		      "Noise"
      SrcPort		      1
      Points		      [90, 0]
      Branch {
	DstBlock		"Sum2"
	DstPort			1
      }
      Branch {
	DstBlock		"Results"
	DstPort			1
      }
    }
    Line {
      Name		      "w(n)+s(n)"
      Labels		      [0, 1]
      SrcBlock		      "Sum2"
      SrcPort		      1
      Points		      [175, 0]
      Branch {
	DstBlock		"Sum3"
	DstPort			1
      }
      Branch {
	Points			[0, -50]
	DstBlock		"Results"
	DstPort			2
      }
    }
    Line {
      Labels		      [0, 0]
      SrcBlock		      "LMS\nAdaptive Filter"
      SrcPort		      1
      Points		      [100, 0]
      DstBlock		      "Sum3"
      DstPort		      2
    }
    Line {
      SrcBlock		      "LMS\nAdaptive Filter"
      SrcPort		      2
      Points		      [15, 0]
      Branch {
	Points			[0, 60]
	DstBlock		"Freq\nResponse"
	DstPort			1
      }
      Branch {
	DstBlock		"Flip"
	DstPort			1
      }
    }
    Line {
      Name		      "Error Signal"
      Labels		      [1, 0]
      SrcBlock		      "Sum3"
      SrcPort		      1
      Points		      [50, 0]
      Branch {
	Points			[0, 200; -325, 0; 0, -115]
	DstBlock		"LMS\nAdaptive Filter"
	DstPort			2
      }
      Branch {
	Points			[0, -35]
	DstBlock		"Results"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "Flip"
      SrcPort		      1
      DstBlock		      "Filter\nTaps"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sine Wave"
      SrcPort		      1
      Points		      [50, 0]
      Branch {
	DstBlock		"Sum2"
	DstPort			2
      }
      Branch {
	Points			[0, 55]
	DstBlock		"LMS\nAdaptive Filter"
	DstPort			1
      }
    }
    Annotation {
      Name		      "Adaptive Sine Cancellation"
      Position		      [282, 32]
      FontName		      "Arial"
      FontSize		      16
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "w(n)"
      Position		      [101, 63]
    }
    Annotation {
      Name		      "s(n)"
      Position		      [103, 130]
    }
    Annotation {
      Name		      "y(n)"
      Position		      [331, 182]
    }
  }
}

⌨️ 快捷键说明

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