parse_awg_waveform#
- parse_awg_waveform(wave_uint: ndarray, channels: int = 1, markers_present: bool = False) Tuple[ndarray, ndarray, ndarray] [source]#
Covert a native AWG waveform into the individual waves.
Converts a received waveform from the AWG waveform node into floating point and separates its contents into the respective waves (2 waveform waves and 1 marker wave), depending on the input.
- Parameters:
wave – A uint16 array from the AWG waveform node.
channels (int) – Number of channels present in the wave.
markers_present (bool) – Indicates if markers are interleaved in the wave.
wave_uint (ndarray) –
- Returns:
Three separated arrays are returned. The waveforms are scaled to be in the range [-1 and 1]. If no data is present the respective array is empty.
- Return type:
Tuple[ndarray, ndarray, ndarray]