EEVblog Electronics Community Forum

Products => Test Equipment => Topic started by: _joost_ on March 13, 2018, 12:15:15 am

Title: Rigol DG4102 TRACe SPCI command
Post by: _joost_ on March 13, 2018, 12:15:15 am
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:
Code: [Select]
    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.