ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

While loop iterations

Solved!
Go to solution

I have copied Fig 4-11 from the labView core 1 manual and attached it. The text states it will stop when enabled and the value exceeds 10. It stops on numbers greater and less than 10. 

 

Also if I run it with the switch disabled the iterations indicated are not integer. Why is that? I thought the while looper counter would always be integer.

 

 

thanx,

 

jh 

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

Switch enabled: only chance of stopping is when the random value is exactly, and I mean exactly equal to 1.  If I remember correctly, this is not possible 0 <= rand < 1.

 

The iterations are integer values, if you expand your indicator you will find the exponent since the display is in scientific notation.

Message Edited by Darin.K on 01-15-2010 12:20 PM
Message 2 of 3
(2,820 Views)
Boy howdy, DUH on me for sure.
0 Kudos
Message 3 of 3
(2,797 Views)