04-04-2017 06:11 AM
Dear All,
I am using a while loop to fetch some values from devices and log these values. I want to use these values in another while loop (inside which is a state machine- for different states). one possible thing is to double demand of these values from devices in 2nd while loop, but it also create errors and cause values to be mismatch sometimes. Using global variable for these values also results in a race condition (As for one device, get temperature value and set temperature value distinguish by one string command). I also wanted to avoid any race condition.
I have marked the values which i needed for further use. Kindly help in this case.
Khan.
04-04-2017 06:13 AM
That is THE use-case for producer/consumer VI architecture.
04-04-2017 06:22 AM
Queue, Notifier, User Event...All of these are good options depending on your exact requirements.