I'm adding a USB-6216 to some existing control software that uses knowledge of the hardware output state to control output sweeps (basically designed to ensure the instrument doesn't unintentionally run outside of voltage bounds and blow up an essentially irreplaceable sample). Is there a way to read from the USB-6216 what the voltage it is supplying to a given ao channel is? I have tried this using something like:
with nmx.Task() as task: task.ao_channels.add_ao_voltage_chan(self.port) outputLevel = task.read(number_of_samples_per_channel=1)
But it tells me you cannot read from this type of input. You can usually do it in LabView? Either directly or as an 'internal channel' feeding back the information.
Does anyone know how this can be done with python nidaqmx?