Posted Wed, 22 Feb 2023 20:09:19 GMT by Karoly, David Senior DSP Applications Engineer
I'm trying to transfer a REF waveform from the scope to the PC using binary format and the CURVE query.
Is there a SCPI cmd I can use to query the REF to find out the number of bytes per sample so I can setup the transfer?

This is an issue because if the REF came from a MATH it will be 32-bit floating point, if it came from a channel acquistion, 
it will be1 byte or 2 byte signed integer, depending on the acquistion mode.

Also, I was expecting that the answer returned by DATA:ENC would change based on the source selected with DATA:SOURce.
This is the case for CH1 ('SRIBINARY') vs MATH1 ('SFPBINARY'). 
Shouldn't this also occur for REF waveforms from a CH vs from a MATH?

It appears that if the source is a REF, the value returned by DATA:ENC corresponds to the previous rather than the present setting of SOURce. This looks like a bug. Oscope FW is 1.34.8.
Posted Thu, 23 Feb 2023 19:44:22 GMT by Teles, Afonso
Hi David,

I was able to replicate this issue in the latest FW version (1.44) and I've contacted our software team to inform them about it. Thank you for reporting this to us!

I have found that the curve query timesout if data:source was previously set to a channel with a different data encoding.
So, as a temporary workaround, you will have to keep track of where your reference waveforms came from and, before calling "curve?" or "data:enc?", set "data:source" to the appropriate type of channel, followed by setting it to your desired reference waveform.

 
Posted Thu, 23 Feb 2023 21:04:59 GMT by Karoly, David Senior DSP Applications Engineer

Afonso, thanks for confirming. 

It would be nice to also have a command that returned the number of bytes per sample of the selected data source. With that downloading code could be written that setup the transfer correctly regardless of the source or acq mode used.

I would have though that querying WFMO:BYT_N would give me this info, but it appears the response doesn't change based on the DATA:SOUR.

You must be signed in to post in this forum.