How to PLOT from .TRC file generated by keysight N9320B Spectrum analyzer

7 ビュー (過去 30 日間)
Muhammad Faizan Malik
Muhammad Faizan Malik 2024 年 8 月 23 日
編集済み: Gojo 2024 年 8 月 24 日
I am trying to generate the plot from Keysight N9320 Spectrum analyzer .trc file from https://www.mathworks.com/matlabcentral/fileexchange/22908-read-spectrum-analyzer-trace-file but MATLAB can't read it and error is
Unrecognized field name "XStart".
Error in readsatf (line 139)
freq(index) = struct.XStart + (index-1)*struct.XScale/struct.XNum;
because file don't contain "#" headers and all the data is unreadable is there any other way to access these results from the .trc file.
  1 件のコメント
Shivam Gothi
Shivam Gothi 2024 年 8 月 23 日
Hello,
Can you please share your .trc file generated by Keysight N9320 Spectrum analyzer ?

サインインしてコメントする。

回答 (1 件)

Gojo
Gojo 2024 年 8 月 24 日
編集済み: Gojo 2024 年 8 月 24 日
Hey Muhammad,
The error message “unrecognized field name ‘XStart’” indicates that the field name ‘XStart’ does not exist within the 'struct' structure. Verify if the field ‘XStart’ is defined and in order to check this, you can make use of ‘isfield’ function. For more information on ‘isfield function you can refer to this documentation:
For reading the 'trc' files, you need to consider the underlying data format. If you are looking for alternative ways for reading the 'trc' file, then you would find the following MATLAB Answers useful for your case:
I hope this resolves your query!

カテゴリ

Help Center および File ExchangeSwitches and Breakers についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by