11-26-2018 04:46 AM
Gentleman -
I am failing at the simplest LV thing: getting a global Boolean variable to be set inside one VI's loop and read inside another VI's loop. I can get the Boolean global to work as a local variable just fine within a single VI, but the communication between VIs does not work. Here are the two VIs and the global.
I am using LV 2013. Is there some setting in LV that I have to adjust to allow globals to work from one VI to another?
Thanks for your help, pk
Solved! Go to Solution.
11-26-2018 05:01 AM
Your problem is actually the Timed Loops. They have the same ID, so only one of them can run at a time. Since you are just using Windows, Timed Loops are kind of worthless. Just use a normal While loop with a Wait inside of it.
11-26-2018 05:11 AM
Thanks! I changed the Loop ID in one VI and it worked. That is funny, cause my other question was why can't I get two VIs to run in the IDE. What is weird is that even the global does not work with the complied executables when they have the same loop ID.
Sweet!
11-26-2018 05:29 AM
@pkNOAA wrote:
What is weird is that even the global does not work with the complied executables when they have the same loop ID.
Nothing weird about that. You have a fundamental issue where a loop cannot run because the loop ID is already used. Your issues actually has nothing to do with the global variable.