LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

While Loop Only Runs Once?

Solved!
Go to solution

I am trying to make a LabVIEW program to control a Sorensen power supply. The VI circled in red asks the power supply for the voltage and current and then outputs it. I want this to be happening continually, but it seems that it only updates once. Does anyone know how to resolve this issue?

0 Kudos
Message 1 of 3
(4,118 Views)
Solution
Accepted by topic author gjacob

Yes.  Your while loop won't iterate again until an event happens such as the value change on Set Values boolean.  You might want to put a timeout on the event structure so that if no event happens (I don't know if you have any other events), the timeout case of the event structure will execute and the loop will iterate.

Message 2 of 3
(4,111 Views)

It worked, thank you so much!

0 Kudos
Message 3 of 3
(4,108 Views)