08-03-2012 03:53 AM
Hi
I am trying one example about Event Structure from the book, LabVIEW for Everyone: Graphical Programming Made Easy and Fun.
The example in the book looks like this:
The number of 'work done' equals 'iteration number'.
But when I build a Vi and try this example, I got this:
iteration number is two times the 'work done'.
I have attached my Vi. Does anybody know what's wrong with my Vi
Thanks
Bing
Solved! Go to Solution.
08-03-2012 03:56 AM
Most likely, your button is configured for the "wrong behavior".
The example your screenshot shows expect the button to be "latch when released".
I think your button is "switch when pressed"...
Norbert
08-03-2012 03:57 AM
Both Activation and Deactivateion of the boolean causes Value Change events, but you only add 1 when it's activated. If you set the booleans mechanical action to Latch instead of Switch they should be the same.
/Y
08-03-2012 04:13 AM
Thank you both! problem solved.