I'm still having a bit of a hard time correctly transferring waveform data. It appears I have a sinusoidal wave with correct time steps when plotting the data, however the scaling is completely off and the signal does not oscillate about zero. I have the most recent firmware.
Using a signal generator @ 1MHz 2Vpp to trigger the DS1054Z, I send the following SCPI commands.
*RST
Wait 5 seconds
Then, for the next lines of code sent, I wait the same X seconds between each command where X has been varied to be between 50ms per command up to 1000ms per command in an attempt to see if waiting between commands will solve the problem of receiving the incorrect YIN and YOR values.
:TRIG:MODE EDGE
:TRIG:EDGE:SOUR CHAN1
:TRIG:EDGE:LEV 1
:TRIG:EDGE:SLOP POS
:RUN
:TRIG:EDGE:SWE SING
(unit is triggered, wait X seconds)
:WAV:SOUR CHAN1
:WAV:MODE RAW
:WAV:FROM BYTE
:WAV:PRE?
Read data which is an array of different parameters. The returned YIN,YOR values appear to be incorrect when applying the following method to reconstruct the waveform.
(Signal_Array - YOR - YREF) X YIN = Waveform with a dt of XIN
Not sure what I'm doing wrong here.