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

📄 fft_demo.mdl

📁 FFT信号分析模型
💻 MDL
📖 第 1 页 / 共 2 页
字号:
  }
  System {
    Name		    "fft_count"
    Location		    [144, 235, 872, 563]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "Dot Product"
      Ports		      [2, 1]
      Position		      [210, 66, 240, 99]
      SourceBlock	      "simulink/Math\nOperations/Dot Product"
      SourceType	      "Dot Product"
    }
    Block {
      BlockType		      Reference
      Name		      "Dot Product1"
      Ports		      [2, 1]
      Position		      [215, 186, 245, 219]
      SourceBlock	      "simulink/Math\nOperations/Dot Product"
      SourceType	      "Dot Product"
    }
    Block {
      BlockType		      Reference
      Name		      "High Frequency Spectrum\n"
      Ports		      [1]
      Position		      [320, 225, 355, 275]
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ScopeProperties	      off
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "64"
      inpFftLenInherit	      on
      FFTlength		      "1024"
      numAvg		      "2"
      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	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      YUnits		      "Magnitude"
      YMin		      "3.2802906229254e-017"
      YMax		      "145.469061550469"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
    }
    Block {
      BlockType		      Reference
      Name		      "Low Frequency Spectrum\n"
      Ports		      [1]
      Position		      [155, 105, 190, 155]
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ScopeProperties	      off
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "64"
      inpFftLenInherit	      on
      FFTlength		      "1024"
      numAvg		      "2"
      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	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      YUnits		      "Magnitude"
      YMin		      "8.77491928933681e-017"
      YMax		      "132.529122557773"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Scope1"
      Ports		      [3]
      Position		      [85, 169, 115, 201]
      Location		      [5, 60, 1029, 741]
      Open		      off
      NumInputPorts	      "3"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
	axes3			""
      }
      YMin		      "-5~-5~-5"
      YMax		      "5~5~5"
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
      MaxDataPoints	      "10000"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave"
      Position		      [40, 105, 70, 135]
      SineType		      "Sample based"
      Frequency		      "2*pi*10000"
      Samples		      "50"
      SampleTime	      "1/10/2000000"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave1"
      Position		      [120, 235, 150, 265]
      SineType		      "Sample based"
      Frequency		      "2*pi*10000"
      Samples		      "40"
      Offset		      "10"
      SampleTime	      "1/100000000"
    }
    Block {
      BlockType		      Sin
      Name		      "Sine Wave2"
      Position		      [115, 15, 145, 45]
      SineType		      "Sample based"
      Frequency		      "2*pi*10000"
      Samples		      "40"
      SampleTime	      "1/100000000"
    }
    Block {
      BlockType		      Reference
      Name		      "Spectrum\nScope"
      Ports		      [1]
      Position		      [435, 110, 470, 160]
      SourceBlock	      "dspsnks4/Spectrum\nScope"
      SourceType	      "Spectrum Scope"
      ScopeProperties	      off
      Domain		      "Frequency"
      HorizSpan		      "1"
      UseBuffer		      on
      BufferSize	      "1024"
      Overlap		      "64"
      inpFftLenInherit	      on
      FFTlength		      "1024"
      numAvg		      "2"
      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	      on
      XIncr		      "1.0"
      XLabel		      "Samples"
      YUnits		      "Magnitude"
      YMin		      "3.47932964626773e-015"
      YMax		      "79.3523196466598"
      YLabel		      "Magnitude, dB"
      LineProperties	      off
      LineColors	      "[0 0 1]"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [340, 100, 380, 170]
      ShowName		      off
      IconShape		      "round"
      Inputs		      "|++"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
    }
    Line {
      SrcBlock		      "Sine Wave2"
      SrcPort		      1
      Points		      [20, 0; 0, 45]
      Branch {
	DstBlock		"Dot Product"
	DstPort			1
      }
      Branch {
	Points			[-145, 0; 0, 110]
	DstBlock		"Scope1"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Sine Wave"
      SrcPort		      1
      Points		      [20, 0]
      Branch {
	Points			[40, 0]
	Branch {
	  Points		  [0, -30]
	  DstBlock		  "Dot Product"
	  DstPort		  2
	}
	Branch {
	  Points		  [0, 75]
	  DstBlock		  "Dot Product1"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 10]
	  DstBlock		  "Low Frequency Spectrum\n"
	  DstPort		  1
	}
      }
      Branch {
	Points			[0, 30; -25, 0]
	DstBlock		"Scope1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Sine Wave1"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	Points			[5, 0; 0, -40]
	DstBlock		"Dot Product1"
	DstPort			2
      }
      Branch {
	Points			[5, 0; 0, 45; -105, 0]
	DstBlock		"Scope1"
	DstPort			3
      }
      Branch {
	DstBlock		"High Frequency Spectrum\n"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Dot Product"
      SrcPort		      1
      Points		      [40, 0; 0, 50]
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Dot Product1"
      SrcPort		      1
      Points		      [35, 0; 0, -20]
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "Spectrum\nScope"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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