How to capture a spectrum from a R&S spectrum analyzer and find its maximum?
20 ビュー (過去 30 日間)
古いコメントを表示
How can I communicate with a Rohde & Schwarz ZVL spectrum analyzer and capture the spectrum on the analyzer screen from matlab?
Then I want to get the frequency at which the maximum value is found.
0 件のコメント
回答 (1 件)
Vinod
2017 年 5 月 1 日
You could start by modifying this example. Specifically, you'd have to modify the SCPI commands to match those for the ZVL, which are documented in the manual for the instrument.
If you are able to get this working, consider posting your code on MATLAB Central File Exchange so others may also learn from your example.
2 件のコメント
Vinod
2017 年 10 月 10 日
These commands get the data on the Keysight instrument. You might find similar commands for the R&S box:
% Trigger the instrument and initiate measurement
fprintf(signalAnalyzerObject,'*TRG');
fprintf(signalAnalyzerObject,':INITiate:WAVeform');
% wait till measure operation is complete
measureComplete = query(signalAnalyzerObject,'*OPC?');
% Read the IQ data
fprintf(signalAnalyzerObject,':READ:WAV0?');
data = binblockread(signalAnalyzerObject,'float');
Please look in the R&S instrument manual for the commands.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!