取消
显示结果 
搜索替代 
您的意思是: 

While loop iterations

已解决!
转到解答

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 项奖励
1 条消息(共 3 条)
2,795 次查看
解答
已被主题作者 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
2 条消息(共 3 条)
2,791 次查看
Boy howdy, DUH on me for sure.
0 项奖励
3 条消息(共 3 条)
2,768 次查看