Hello forum,
We need to take the Spectrum Analysis (single) trace data from an N9030A and compare the spurious around a CW- or DSSS carrier with a pre-calculated mask (Python/numpy). With the Save => Data (Export) => Save As.. buttons, we get all the data we need, however I can't for the life of me find how to do the same using SCPI.
In the Users's and Programming Reference manual of the N9030A it says:
*Notes*
..
*No SCPI command directly controls the Data Type that this key controls. The*
*Data Type is included in the MMEM:STORe commands.*
When I try to use DATA type for storage I get:
In [20]: pxa.write(":MMEM:STOR:DATA 'mydata.csv' ")
In [21]: pxa.ask(":SYST:ERR?")
Out[21]: '-113,"Undefined header;MMEM:STOR:DATA"'
Can anyone please explain how I can get trace data, preferably in ascii format using remote programming anyway?
Thank you.
Theo
Edited by: twe@ssbv.com on Aug 13, 2012 2:50 AM
Added instrument type to subject line
We need to take the Spectrum Analysis (single) trace data from an N9030A and compare the spurious around a CW- or DSSS carrier with a pre-calculated mask (Python/numpy). With the Save => Data (Export) => Save As.. buttons, we get all the data we need, however I can't for the life of me find how to do the same using SCPI.
In the Users's and Programming Reference manual of the N9030A it says:
*Notes*
..
*No SCPI command directly controls the Data Type that this key controls. The*
*Data Type is included in the MMEM:STORe commands.*
When I try to use DATA type for storage I get:
In [20]: pxa.write(":MMEM:STOR:DATA 'mydata.csv' ")
In [21]: pxa.ask(":SYST:ERR?")
Out[21]: '-113,"Undefined header;MMEM:STOR:DATA
Can anyone please explain how I can get trace data, preferably in ascii format using remote programming anyway?
Thank you.
Theo
Edited by: twe@ssbv.com on Aug 13, 2012 2:50 AM
Added instrument type to subject line
We have example programs that demonstrate this on the http://www.agilent.com/find/sa_programming page and in the programming examples guides for some of our signal analyzers.
Getting trace data back from the analyzer is the most basic thing customers perform using a signal analyzer. The syntax has not changed between our older analyzers and newer analyzers. There is a good example in the PSA and ESA Spectrum Analyzer Measurement Guide and Programming Examples on pages 214 to 217: http://cp.literature.agilent.com/litweb/pdf/E4401-90482.pdf
The primary commands used are “INIT:IMM;*WAI” and then “TRAC:DATA? TRACE 1”
Regards -