05-11-2016 08:29 AM
Hi GerdW,
I understand your points and they are well taken. Sometimes I don't need to capture intermediate values, only need the latest value at the current moment. If I need to capture all value changes, I would probably use a queue to read/write.
User tst provided an answer to my question. Based on his/her answer, it would appear that a global variable access IS wrapped with a mutex.
If I need to do a read/modify/write to a global, even an FGV, I would need to implement my own mutex. Though an AE could be written to do this without an explicit mutex (the VI provides its own mutex).
05-11-2016 10:55 AM
05-11-2016 11:03 AM
Mutex or not, you'd still have race conditions if you have several concurrent writers.
/Y
05-11-2016 02:57 PM
I recommend having a good look at an example I put together: A Look At Race Conditions
05-11-2016 03:04 PM
Look at my nugget on Action Engines.
I suspect that is the answer you are trying to find.
Ben