05-27-2015 07:42 AM
I'm pulsing 6 LEDs with Labview and the DAQ USB-6351, but I have an issue when the program stops.
I've attached the VI.
The problem appears depending on when the user stops the VI, the LED remains turned on.
I tried to solving this problem by writing false to all the channels, but this gives me a warning every time, and it doesn't solve the problem.
Any solutions?
05-27-2015 07:48 AM
What warning/error are you getting? Why are you trying to read from digital outputs?
05-27-2015 08:04 AM
The readings from the digital channels are just to know which state the LEDs are in.
The warning im getting is:
05-27-2015 09:19 AM
Stop the task before writing your all FALSE.
06-01-2015 12:52 AM
You mean like this? I still get the same warning.
06-01-2015 06:51 AM
Almost. Why would you restart your outputs right after stopping it? That's just silly. All you need is to remove that DAQmx Start that is done right after the DAQmx Stop Task.
06-02-2015 03:16 AM
Thanks for bearing with me..
When i remove the Start DAQmx, I just get another error:
06-02-2015 07:54 AM
Do the final Write (of all False) before you stop the Task (but after you exit the While loop). The Task needs to be running fin order for I/O to take place.
Bob Schor
06-03-2015 01:57 AM
Bob, if I remove the stop DAQmx I'm back to where I started. 🙂
06-10-2015 02:59 AM
Any hints?