LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple write to an indicator without local variable

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

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

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



Remember Cunningham's Law
0 Kudos
Message 2 of 3
(2,740 Views)

@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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(2,711 Views)