09-07-2012 11:42 AM
I have been asked to make three VIS from 1 VI. I can't pass globals between 3 seperate VIS? Maybe going back to 101 in lab view may help.
Philip
Solved! Go to Solution.
09-07-2012 11:48 AM
Global variables can be read by any VI. Locals cannot be shared. Of course, there's also the Functional Global Variable that is popular as well.
But, yes, global variables can be used by all of your VIs.
09-07-2012 11:58 AM
You can also adopt more of a messaging system and use queues/notifiers/user events to pass data between the VIs.
09-10-2012 07:47 AM
Your solution should depend upon what sort of data passing you need. Some of the types of data you may need to pass around and some ways to do it are as follows:
If you give us more details of what you are trying to accomplish, we can be a bit more specific.
Please note that globals are not on the above list. They are fast, easy, and I think they cause more trouble than they are worth. If you want more details, search these forums for huge amounts of debate on the subject.