Hardware Continues to Output Voltage After Closing Device Session

Updated Oct 25, 2019

Reported In

Driver

  • NI-DAQmx
  • NI-FGEN

Issue Details

I am running an analog output application which outputs a voltage to one or more channels on my device. After I stop the program, the card is still outputting the voltage and I need to make sure this does not happen after I stop my application. How can I do this without having to restart my computer?

Solution

The last value written to the card will be retained after the application completes. This is the expected behavior of most of NI's output devices (DAQ, M, E, R Series, F-Gen...). To disable the output, you can write zero volts to your channel(s) right before you end the program. Resetting the device from software will also bring the outputs back to zero but this could conflict with other tasks being performed by the device.