05-21-2018 07:11 AM
I am using NI PXIe-6363 (and coding with LabView 2017). I am trying to generate a continuous analog output (sine voltage) until the user presses the Stop button. After that I need to set zero voltage to the output which was used. Thus, after the while loop I send 0 to the output using DAQmx Write.vi, then I stop the task with DAQmx Stop Task.vi and clear the task with DAQmx Clear Task.vi (see VI attached). However, there still remains last generated voltage value on this output (checked it with multimeter and oscilloscope).
What am I doing wrong? Would be thankful for any comments.
P.S. I also tried using Stop Task.vi first, and then setting 0 with Write.vi. Also didn't work.
Solved! Go to Solution.
05-21-2018 02:24 PM
Your first approach puts a 0 value into the buffer, but stops and clears the task before that 0 value gets it's turn to be generated as a hardware signal.
The approach you mentioned in the "P.S." was closer. You should stop the task, then write some 0 values into the buffer, *then start the task*. It may be a good idea to wait a few msec after starting the task before you stop and clear it again.
-Kevin P