Solution
This is the expected behavior of most of NI's output devices (DAQ, M, E, R Series, F-Gen...). There are two ways to avoid this undesired behavior, listed by relevance:
- Write zero volts to your channel(s) right before the end of the program. An efficient way to accomplish this is to implement a state machine with a "shutdown" state.
- You can also reset the device from software using the DAQmx Reset Device VI . This method could conflict with other tasks being performed by the device.