I am trying to send my own waveform data to the Rigol DG4102 ARB generator using the :TRACe:DATA:DAC16 SPCI command but am thusfar not successful. I have been able to use the :TRACe:DATA:DATA command but that command is limited to the number of data points/accuracy you can effectively send.
I am using a simple python3 script which uses pyvisa which calls:
self.write_binary(':TRACE:DATA:DAC16 VOLATILE,CON,', wave_data, datatype='h', big_endian=False)
self.write_binary(':TRACE:DATA:DAC16 VOLATILE,END,', wave_data, datatype='h', big_endian=False)
wave_data is a int16 numpy array of 8192 elements filled with data ranging from 0 at the start to 0x3FFF at the end.
The ARB just beeps at me with each of these command and throws out an error. I tried shorter arrays (1024), different endianness but nothing works. Clearly I am too stoopid to understand this, or might there be a bug in Rigol's SPCI command/guide?
Any help is greatly appreciated.