06-05-2011 10:55 AM
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
06-05-2011 11:07 AM - edited 06-05-2011 11:14 AM
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.
06-06-2011 01:10 PM
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