Getting error trying to get data from spectrum analyzer every 20ms
    조회 수: 6 (최근 30일)
  
       이전 댓글 표시
    
I have Simulink model built as top left, spectrum analyzer showing real-time fft at the bottom left, and I typed: spectrumTable = getSpectrumData(scopext) in command window trying to get data from spectrumanalyzer every 20ms(each frame), and then it shows the error on the right "too many output arguments". Anyone knows how can I achieve it?
댓글 수: 0
답변 (1개)
  Walter Roberson
      
      
 2018년 5월 9일
        scopext is a function to register scope extensions in various situations. With no input arguments you would probably end up running the one from the Signal Processing Toolbox, or possibly the Fixed Point toolbox. Neither of those return any output value, so you cannot use them in the form getSpectrumData(scopext)
Perhaps there was reason you expected scopext to be a variable that you had assigned a <https://www.mathworks.com/help/dsp/ref/dsp.spectrumanalyzer.getspectrumdata.html Spectrum Analyzer System Object to.
댓글 수: 0
참고 항목
카테고리
				Help Center 및 File Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

