LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

while loop "not worknig" without the option " activate animation" on

Solved!
Go to solution

Hello

I'm working on Labview 8.6 with FPGA module

 

in my VI i have a loop working with a device on a RS232 link, a while loop updates the status of the device on the front panel

Alone this loop works fine

 

 

My issue is that when the rest of the program runs this loop is kind of in a standby mode (all the program work exept the status of the devices is not updated)

  

BUT if i turn on the animation (the yellow light to see the dots running the cables) my while loop works and the status is again updated

 

if i turn off the animation the loop returns "silent"

 

any ideas?

Thx

0 Kudos
Message 1 of 4
(2,568 Views)
Solution
Accepted by topic author Damiien

Do you have any while loops running without any wait statements in them?  It sounds like symptoms you would have if you had a "hungry loop".  Basically a loop that is running so fast eating up 100% of the CPU resources that it doesn't yield time to the processor to do things like display updates.

Message 2 of 4
(2,565 Views)

i just checked the CPU and ideed labview is using 100% while my VI is running.

 

should i insert wait box in all my while loops ?

 

(another loop has a clock showing on the front panel and is not slowed or stop with the problematic loop)

Message Edité par Damiien le 03-11-2010 09:37 AM
0 Kudos
Message 3 of 4
(2,560 Views)
hungry loop spotted (bad loooop bad ! )^^ thx a lot !Smiley Very Happy
0 Kudos
Message 4 of 4
(2,545 Views)