LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

for loop

Solved!
Go to solution

hi guys,

im trying to count every second iteration of a for loop, so when the loop twice it registers 1 on a counter , or eight times would register 4 ect, ive tried some of the normal nurmeric functions and not getting the effect im looking for  ,

any suggestions

thanks !

0 Kudos
Message 1 of 3
(2,771 Views)
Solution
Accepted by topic author vadajooz

HI,

 

Try Using the Quotient and Remainder Function under the numeric pallete.  Divide the iteration by 2 and when there is no remainder i.e is a direct multiple of 2 you will get 0 out.  Which you can then use to add to your count value with a few more primatives.  This approach works well with any integer and probably with non integers as well although you may want to try those out for yourself and let me know how you get on 😉

 

Craig

LabVIEW 2012
Message 2 of 3
(2,767 Views)

craigc ,

so so many functions !! after playing around with quotient and remainder function , and adding some other numerics i  i got the what i was looking for !

 

thank you !!

0 Kudos
Message 3 of 3
(2,748 Views)