Export Spectrum Analyser trace to workspace or file
이전 댓글 표시
Hi, as the title says, I want to find out how to export the trace (dBm) from a Spectrum Analyser, in Simulink, to either the workspace or preferably to an external (EXCEL spreadsheet) file ?
답변 (1개)
Fangjun Jiang
2020년 3월 17일
편집: Fangjun Jiang
2020년 3월 17일
0 개 추천
Run this to open the document and example, I believe the answer can be found there. The key is probabaly the function getMeasurementsData()
web(fullfile(docroot, 'dsp/ref/dsp.spectrumanalyzer.getmeasurementsdata.html'))
or from https://www.mathworks.com/help/releases/R2019b/dsp/ref/dsp.spectrumanalyzer.getmeasurementsdata.html
댓글 수: 8
Derek Eccles
2020년 3월 17일
Derek Eccles
2020년 3월 17일
Fangjun Jiang
2020년 3월 17일
What are you trying to do with this? "sablock" is goint to have the same value as "fsk"
sablock = fsk, '/Spectrum Analyzer'
Open the html weblink, there is a model, there is a spectrum analyzer block, there are example code!
Derek Eccles
2020년 3월 18일
Fangjun Jiang
2020년 3월 18일
Then, it should be sablock='fsk/Spectrum Analyzer'. Or, click (once) the Spectrum Analyzer block in your model, go to Command Window, type "sablock=gcb" and you'll get the full path of the Spectrum Analyzer block. Then follow the example in the webpage.
I don't know why your previous post shows some numerical numbers.
Derek Eccles
2020년 3월 18일
Fangjun Jiang
2020년 3월 19일
편집: Fangjun Jiang
2020년 3월 19일
They all depend on your simulation data and setting.
If your model name is 'fsk.slx', then specifying the full path of the scope block should be scope='fsk/Spectrum Analyzer'. type "fsk" before and after the simulation to see what happened. "fsk" should just bring up your model.
Derek Eccles
2020년 3월 19일
카테고리
도움말 센터 및 File Exchange에서 FSK에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!