LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

while loop iteration stays at 0

i have labview 7 student editon. i am trying to do a while loop that increments and plots a sin wave. basically i am doing chapter 1 in Advaced labview labs. but when i run it i get a line. when i run step by step it looks like the iteration is staying at 0. any ideas. thanx.
0 Kudos
Message 1 of 6
(3,276 Views)
Hello, can you post the VI please ?

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 6
(3,274 Views)
0 Kudos
Message 3 of 6
(3,267 Views)
Well... obviously you are new to LabVIEW, don't worry we all started from the bottom just like you 😉

In the right-bottom corner of the loop you linked a TRUE constant to the "stop condition", and this stop condition is set "stop if true".
So the loop executes just once and this is normal behaviour.

Have a look at the VI attached to see how to do it differently 😉 !

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 4 of 6
(3,265 Views)
ah ha.

thank you for the help.
0 Kudos
Message 5 of 6
(3,261 Views)
Can you post the code somewhere?

0 Kudos
Message 6 of 6
(3,244 Views)