10-12-2009 04:06 PM
Hello,
I'm a newbie to labview and I'm trying to get the LED come true or false depending upon the counter data. If the data remains the same the led to false and as soon as the counter data increment I would like to trigger the led at every data increment.
I'm attaching my code... please show some insight.
thanks!
10-12-2009 04:17 PM
I don't understand your question.
Right now you have a comparison of the previous data to the new data. So if you put a NOT on that then the LED, if the data is equal, it will set the LED to false, if the data is different, it will set it to true.
But you say "as soon as the counter data increment I would like to trigger the led at every data increment". Whenever the data increments, by definition it will be different, and that will automatically mean the LED becomes true.
10-12-2009 06:54 PM
I hope this helps:
10-12-2009 07:40 PM
Harold,
You have a bit of a Rube Goldberg there.
Why the case structure? Just put a NOT function between the equals and the LED.
(And of course more direct would be the Not Equals function, but I know the OP was originally using an equals comparison in the VI for other reasons.)
10-12-2009 09:12 PM
10-12-2009 09:26 PM
10-13-2009 07:27 AM
Hello -
thanks for all your inputs, I did try using a not function after the equal to. As the loop was the running so fast that I couldnt see the trigger. However as soon as I added a wait until ms function and gave it a constant, I could see the Led trigger.
thanks for all your help.