09-13-2012 04:17 PM
Hello,
Basically I am trying to count the number of click by the user.For that I am using an Event structure but I want that our main loop should not be halted while waiting for the event and for that an additional loop also created.But when I am click the button, count value is not increasing and I am not able to understand why.
Solved! Go to Solution.
09-13-2012 04:25 PM
Word of advice: Save your code for an older version before you post. Most of us can't open your VI since we haven't upgraded yet.
09-13-2012 04:47 PM
You can directly check for the value change event of the boolean button on whose value change you want to increment the counter. look at the code and let us know if that is what you need.
09-13-2012 05:31 PM
I currently have LV 2011 installed. The copy saved in LV 2009 works fine.
09-13-2012 05:36 PM
Event are not triggered by indicator changes, but by user interactions. Associate your event with "clickB" instead of the LED.
Attached is a cleanup, see if it makes sense.
09-14-2012 08:29 AM
I really forget that thing(compatibility).
I am uploading the vi for earlier version.
09-14-2012 09:22 AM
AOE_3 wrote:I am uploading the vi for earlier version.
Your version is still 2012.
My solution above is also in 2012. Did you have a chance to look at it?
09-14-2012 10:53 AM
Thanks altenbach for yours solution and now it's working.