03-20-2006 11:03 AM
03-20-2006 11:15 AM
03-20-2006 11:20 AM
03-20-2006 12:03 PM
Hi phili,
The easiest way is to use property nodes.
See attached vi example. Sorry for very messy block diagram.
The trick with using boolean & property nodes is that the button must not be latched..
Hope it helps,
JLV
03-20-2006 12:04 PM
03-20-2006 12:06 PM
03-20-2006 12:08 PM - edited 03-20-2006 12:08 PM
@phili wrote:
My final application uses 6 consuming loops.
I just thought that there would be a more elegant way of solving this issue.
Would a global variable help ? Probably not as one loop would have to reset it and
I would need semaphores and additional overhead to determine when all processes have read the flag.
Phili
The number of loops should not matter. If you can, stay away from Global (or Local) variables.
When running the example, you can click on RESET and see all LEDs turn ON or OFF simulataneously. It's a rough running vi that is simply meant to illustrate a very simple solution.
As for using Semaphores, it depends... do you want to execute one thread while others wait or do you want all to run simultaneously in parallel? I am not sure how you want to use this, maybe if you describe the issue a bit more. 😉
JLV
OOPS!!
My mistake!! (Not enough coffe thismorning!) yikes..
Sorry. I missed the RT system... OK..
Yes, in this case maybe using notifiers would be a better way.
Not globals..
JLV
Message Edited by JoeLabView on 03-20-2006 01:11 PM
03-20-2006 12:28 PM