I am trying to pull trace data from a FieldFox N9918A using SCPI commands with Python. Specifically, I am using the query command CALC:DATA:FDATa? to retrieve data from a Polar plot, but I am unable to get both the real and imaginary components of the trace data. Nor can I get the frequency data. However, when I write a csv file to the FieldFox, I am able to get frequency, real and imaginary data in that order. Unfortunately, space constrictions require that I save the data to another device such as a laptop pulling the data over ethernet with Python.
Is there a SCPI command that will give me all the trace data of the polar plot so I can reproduce the csv files exported by the FieldFox?
Thank you.
sdata will give you the real and imaginary data.
http://na.support.keysight.com/fieldfox/help/Programming/webhelp/CALCulate_SELected_DATA_SDATa.htm
For the frequency though, you need to read the start, stop and # of points and calculate the frequencies. A request has been logged to add this SCPI capability.
An alternative is to save the csv on FieldFox, transfer it, delete it, save the next one, and so forth.
Afsi Moaveni