01-21-2014 10:18 AM
Hi all,
I'm new to LabView.
I'm trying to build a multi page GUI.
The first page contains a set of buttons that the user can press, like a sort of menu. Each of them opens a different GUI. In order to do that I'm using the Invoke Node command.
What I'm trying to understand if it's possible to pass data from one of the subGUIs to the others. How can I do that?
Thanks
01-21-2014 12:02 PM - edited 01-21-2014 12:04 PM
Possibly the easiest thing to do is to use a tab control and just add as many pages as you need for the various GUIs.
You then don't need to pass data around between subVIs because it's all within the same VI.
01-21-2014 01:28 PM
I tryed that but it is not exactly what I was looking for..
01-21-2014 01:41 PM
Hi soul,
use notifiers, queues, functional global variables, simple global variables...
- Did you look at the ActorFramework coming with LabVIEW2013 (or perhaps also with LV2012)?
- Did you look at the appnotes (and other online documentation) about recommended code structures (like state machines, producer-consumer, and other)?
01-21-2014 01:55 PM
If you need to communicate between subVIs within one main program, then you can use global variables etc. as mentioned above. If you have separate programs running, then you will have to use Shared Variables, Data Socket, or something along those lines.
01-22-2014 02:51 AM
01-22-2014 03:20 AM
The FGV (or AE - Action Engine if having more actions that Get and Set) is the easiest way, but i'd say Events or Queues is the more correct one. As a note, it could be nice to insert the GUI as a sub-panel.
/Y