LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

varios bucles while no se ejecutan

Hola, tengo un problema con una aplicación que estoy desarrollando en donde combino varios bucles while para ejecutar diferentes funciones en paralelo. La aplicación combina timed loops y bucles while estándar, en total unos 12. El caso es que en ocasiones algunos de los bucles while no se ejecutan cuando ejecuto la aplicación, es mas, hay veces que sólo se ejecuta la primera iteración de estos bucles que fallan y luego no se ejecutan mas. Esto no siempre ocuerre y a veces al hacer un pequeño cambio en alguno de los bulcles, como cambiar los milisegundos a esperar, funciona aunque esto no funciona para siempre.

Si me podéis ayudar con lo que puede estar pasando?

 

Gracias y un saludo.

Larrito 

0 Kudos
Message 1 of 3
(2,356 Views)

Translation via google:

 


Several while loops are not executed

 

Hi, I have a problem with an application I'm developing where I combineseveral loops to perform different functions in parallel. Applicationcombines timed standard loops and while loops, a total of 12. The fact is that sometimes some of the loops while not running when I run theapplication, but there are times when only runs the first iteration of theseloops that fail and then not run more. This is not always ocuerre and sometimes make a small change in one of the bulcles, such as changing the milliseconds to wait, it works but this does not workforever.

 

If you can help me with what might be happening?
 
Thanks and regards.
Larrito

Can you attach your program? Maybe some of your stop conditions are switch action and are still false when the program starts, maybe due to race conditions?
 

 

0 Kudos
Message 2 of 3
(2,349 Views)

Hi Altenbach.

I have been looking at what you said and I think I came with the solution.

The point was the conditional terminal of the while loops that failed. These conditional terminals were connected to the same local variable with a wrong switch behaviour.When I ran the program the while loops performed one single iteration as then the conditional terminals were always true even though the original button did not appear pressed on the front panel.

 

I have changed the switch behaviour and it seems to run fine.

 

Many thanks

0 Kudos
Message 3 of 3
(2,332 Views)