convert_awg_waveform#

convert_awg_waveform(wave1: ndarray, wave2: Optional[ndarray] = None, markers: Optional[ndarray] = None) ndarray[source]#

Convert one or multiple waveforms into the native AWG waveform format.

Converts one or multiple arrays with waveform data to the native AWG waveform format (interleaved waves and markers as uint16).

Waveform data can be provided as integer (no conversion) or floating point (range -1 to 1) arrays.

Parameters:
  • wave1 (ndarray) – Array with data of waveform 1.

  • wave2 (Optional[ndarray]) – Array with data of waveform 2.

  • markers (Optional[ndarray]) – Array with marker data.

Returns:

The converted uint16 waveform is returned.

Return type:

ndarray