LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

count

Hi ni world. I am just trying to use a counter to count (add one to a buffer) any time a particular case frame is used. Then use this buffer to minus from an iteration value for my while loop.

 

i have had no luck at all doing this and have run out of ideas. can someone please help

 

thanks

 

0 Kudos
Message 1 of 4
(2,900 Views)
Hi Ajb,

you can do it like this:

RTFM on shift registers Smiley Wink

Message Edited by GerdW on 04-30-2007 10:10 AM

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 4
(2,891 Views)

Not sure about the Boolean and Integer blocks. Are the Boolean Constancies set to true and where/ how do you use the buffer count? Is it taken from the shift reg?

 

thanks for your help

 

0 Kudos
Message 3 of 4
(2,865 Views)

Ajb181:

The program will keep incrementing while "Count up?" boolean is set to true. The Shift register is used to hold the last buffered value, while the numeric indicator keeps track of the difference between the iteration number of the while loop and the current count. I would recommend that you check out the Learn LabVIEW in 3 Hours online tutorial that has plenty of information about these topics. Feel free to post if you have any other questions.

Thanks,

Rudi N.

 

0 Kudos
Message 4 of 4
(2,840 Views)