LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating only one cluster element while avoiding race conditions

Solved!
Go to solution

Yeah, good chance Altenbach's response is better due to the fact that if you were to follow my example verbatim, you will not will be able to dequeue as fast as you queue.  You'd have to get a little bit more fancy.  Notifiers, syncs etc...  Which, if you do go the queue route, don't follow my code verbatim.  😉

0 Kudos
Message 11 of 13
(1,064 Views)

My very first thought just from reading the thread title was "Use a DVR".  I normally do not use them (legitimately once), but this looks like a perfect spot for them.

 

The issue with a FGV here is that you will have to have an input for every single item in your cluster.  That just gets very unweildy very quickly.

 

Also, you can keep the DVR reference in a global variable, if that helps you any.


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 12 of 13
(1,041 Views)

Thank you everyone, I think this is the best solution for me 🙂

0 Kudos
Message 13 of 13
(996 Views)