LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to generate TRUE/FALSE value base on iteration?

I'd like to generate a TRUE/FALSE value base on iteration or cycle number. Let say from 0-30 should return a TRUE value then FALSE value for the next 100 iteration or cycles and this routine will keep going until the user stopped the vi. The only solution I have right now is to create an INI file and use it as a look up table but this might not be practical due to its limitation. Any help would be appreciated. Thanks in advance and HAPPY FRIDAY!! Smiley Happy

______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 1 of 4
(4,446 Views)

Instead of lookup table, you can mention ranges in INI file.

At start of the program just read all ranges and then you have to compare current iteration falls in which range and accordingly select True/False value.

 

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 2 of 4
(4,443 Views)

You could try something like this. Use the Quotient & Remainder to reduce the Iteration count into the range on interest and the In Range & Coerce to check for the True range.

 

TRUE_FALSE.png

Ryan Podsim, CLA
Message 3 of 4
(4,428 Views)

Thanks to both of you....

______________
KowdTek
LabVIEW 2009

One Step At A Time, Maybe Two...
0 Kudos
Message 4 of 4
(4,385 Views)