Hi!
I'm just about to get a bit frustrated about my task so I hope you guys can help me out.
I need to create an I/Q diagram and get the I/Q data out of the PSA E4443A onto my computer using LabView. Is there a SCPI command to do that or maybe even a more simple solution using the driver and it's VIs?
Thanks for any hints!
michi
I'm just about to get a bit frustrated about my task so I hope you guys can help me out.
I need to create an I/Q diagram and get the I/Q data out of the PSA E4443A onto my computer using LabView. Is there a SCPI command to do that or maybe even a more simple solution using the driver and it's VIs?
Thanks for any hints!
michi
I have similar problem - how to get IQ data in binary format out of the PSA and how to convert the binary format back to ASCII in a computer? In some cases ASCII transfer is very slow and the files are large (for several thousands of time points it makes several MBytes of data).
This works perfectly, but very slowly for ASCII:
:INST:SEL BASIC
:FORMat:DATA ASCII
:READ:WAV0?
READ TEXT signal STR
When I'm trying the same with binary data, it works, but the output variable "signal" contains nonsense data and there is no space save (i.e. the size of "signal" is comparable to the ASCII case)
:INST:SEL BASIC
:FORMat:DATA REAL,32
:READ:WAV0?
READ BINBLOCK signal REAL32 ARRAY
Thanks for any suggestions
Martin
The binary data received in FORM,32 format starts with a data header in ascii followed by binary trace data.
If you send READ:WAV0?, you'll receive data starts with something like the following:
#521824.....
The binary header always starts with "#" (1 byte). The following "5" shows number of bytes that expresses data size. Meaning, the following 5 bytes expresses the amount of data coming, which is "21824" bytes. With FORM,32, each data is 4 bytes (32 bits) so there are 5456 (=21824/4) points of data coming. On PSA screen you'll see 2728 points (for this example) because each points has I and Q data. Now you scan discard the header and loop through data to copy 4 bytes to float array, to convert them in readable data. The data length must be much shorter than ASCII transfer.
Please also refer the sample code available in the following page.
http://www.home.agilent.com:80/agilent/ ... =eng&cc=US
Does this answer your question?
Naoya Izuchi
Agilent Technologies
thank you for the reply. In the meantime, I came to very similar results as you describe. It seems that I had some improper variable conversions in my VEE code and thus I always have been reading large files without any meaningful header (size comparable to ASCII) even if I had set it to be binary. Now it works fine after changing the read format from TEXT to REAL64 or REAL32.
Martin