12-08-2017 06:10 AM
I have a T/F variable for connection to the server, both loops are using it and one of them is checking for server connection every few seconds and the other reads it every few minutes. I see so many options to share the variable but I still feel the best way to do it is simply shared variable - i need no steady data flow, i don't mind missing data... Am I right with that?
12-08-2017 06:23 AM
Hi Fyzik,
I still feel the best way to do it is simply shared variable
- When both loops are in the same VI: use a local variable.
- When both loops are in one executable, but different VIs: use a global or a notifier.
(You can replace locals/globals by FGVs aka AEs.)
- When both loops are in different executables: use a shared variable.
12-08-2017 07:45 AM
I would just go with a simple Global Variable myself. I don't trust Network Published Shared Variables, but a Single Process Shared Variable will work.