from the M2p-65xx AWG manual: "This mode allows the user to replay up to four additional digital channels that are synchronous and phase stable along with the analog data."
The digital waveform must be encoded in the analog samples like this:
def write_digital_waveform_to_bit_15_of_analog(
digital_waveform: NDArray[bool_], analog_waveform: NDArray[int16]
) -> NDArray[int16]:
if analog_waveform.shape != digital_waveform.shape:
raise ValueError("Analog and digital waveforms must have the same shape.")
analog_waveform &= ~1 # Clear the least significant bit
analog_waveform |= digital_waveform.astype(int16) # Set the least significant bit using bitwise OR
return analog_waveform
from the M2p-65xx AWG manual: "This mode allows the user to replay up to four additional digital channels that are synchronous and phase stable along with the analog data."
The digital waveform must be encoded in the analog samples like this:
and then the mode enabled something like this: