|
Re: How do i find a variable and use it on Labview
That "example" that I published? FULL OF RACE CONDITIONS (intentionally). Good luck trying to figure out the order of precedence in that. I was simply trying to show that it's possible.
The OS/program will only store 1 "real" copy of the variable in a single memory location. Every function can simultaneously read/write to the single memory location from "anyplace". But as BLAQmx points out, be careful when you have multiple writes that are happening simultaneously.
You'll never know which "write" "wins". That's why I use sequences to force program flow where necessary. Being a very single-threaded engineer, I use a LOT of stacked sequences.
Russ
|