LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

timed loop in subVI not execute when event triggers

I have a weird problem. I have an event handler which has subVI's in each events. A timed loop is in the subVI. The timed loop works fine when the subVI gets called by the event handler for the first time. But it does not execute (does not count time) when it is not the first event. Any idea?
0 Kudos
Message 1 of 3
(2,679 Views)

Please attach your code.

 

Most likely, you have a dataflow problem. Remember that the event structure cannot finish if the current frame is not finished.

If events need to execute in parallel, they must be in seperate event structures and in independent loops.

Have you run your code with execution highlighting? You'll probably see what is going on.

0 Kudos
Message 2 of 3
(2,678 Views)
I found the problem. It was bad time loop! When I replaced the time loop with new it solved the problem. I think something  happened when time loops were generated. I have about twenty time loops in the program and two of them had the problem (does not count when other time loops called first). BTW I am using LV 8.0. Thanks a lot!
0 Kudos
Message 3 of 3
(2,671 Views)