02-26-2008 10:23 AM
02-26-2008 10:28 AM
Hi punkmonkey,
it sounds like you have only one application with many subvis, so you need no network variable. If you pass the reference to a subvi then you got it. With this reference you can change the value of your boolean button. Where is the problem?
Mike
02-26-2008 10:55 AM
02-26-2008 01:20 PM
Hi punkmonkey,
ok it is not that easy i think first, but you can use Queues to build a communication between both vi´s. I´ve attached your changed vi´s and hope it helps.
Mike
02-26-2008 02:13 PM
02-26-2008 02:17 PM
Hi punkmonkey,
yes you are right, it is bigger than a thought first, but with the solution you have no polling. You send the event only if the state change.
Mike
02-27-2008 08:01 AM
I figured out a simpler way. Not sure if there will be a race condition, but it appears to be doing what I want. The key is handling the value change events.
Thanx for you help though.
02-27-2008 08:08 AM
Hi punkmonkey,
you should use a "wait" or a "wait until next..." in you subvi´s top while loop, because the cpu usage is very high without it. i guess 5 or 10 ms are enough and your code run all the same.
Mike
02-27-2008 11:12 AM
punkmonkey wrote:
I figured out a simpler way.
02-27-2008 02:48 PM
I'm lost. Could you modify the attached examples to explain.
I can't seem to get the timeout event to fire.
Thanx.