04-14-2016 01:07 AM
Hi there,
I am looking for a solution to write to an bool indicator from different places of my programm. Is there a way to do this without using a local variable?
Thanks
Michael
04-14-2016 01:28 AM
Hi Michael,
there are other ways to do this, like queue, notifier, FGV. All of these involve writing to the boolean indicator in a single place and passing data from various places in your BD to that place. In bigger applications I usually use a UI loop, that processes the information. In smaller applications that have no real need for synchronisation and when the risk of race conditions is low or not relevant I just use local variables (with the caution of course).
Cheers,
Peter
04-14-2016 04:18 AM
@Michael65589 wrote:I am looking for a solution to write to an bool indicator from different places of my programm. Is there a way to do this without using a local variable?
What exactly do you mean by "different places"? Different states of your state machine? Seperate loops? Is the boolean being constantly written to? A quick example could be helpful here.