11-09-2017 04:16 AM
Title may be misleading, but what i'm trying to do is counting how many 1's im getting, i have made this counter https://i.gyazo.com/1da22e7ee306654a3d5e11e510cd2c35.png
Basically i'm getting 1 and 0's from a device, but the counter counts 1 reading and counts 5-6 readings basically it wont stop if the 1 is held.
i cant figure out a way that the counter only works if the previous data is 0.
what i thought is i have to record the previous data,and only start if it is zero.
help thanks, i'm obviously a beginner in labvview
11-09-2017 04:22 AM
11-09-2017 05:05 AM
Hey there Thank you so much for introducing me to this , it should solve my problem! unfortunatly it is not working for me , this is only me testing it with a button, What did i do wrong?.
When i use the highlight exution, the case structure keeps going to false, even if i tried both true-false and false-true.
is there something im not getting?
11-09-2017 05:58 AM
Difficult to tell, since we see only part of your code. One correction would be to also connect the wire in the FALSE case of your case-structure.
Regards, Jens
11-09-2017 06:53 AM
Hey there, Thank you for your help.
First off heres a simpler version that is not working (what am i getting wrong? )
Second: wither i do a true false or not i still get a False in the case , so that wont help but thank you so much for your suggestion
11-09-2017 06:58 AM
11-09-2017 07:16 AM
Here you go, image attached.
The booleancrossing is inside a while loop for arduino, wouldnt that be perfect for it? since what im getting is readings from the digital pin?.
Thanks a lot
11-09-2017 07:42 AM