02-12-2007 02:38 PM
02-13-2007 04:20 PM
Hello Clueless,
Although I do not have an example, here's some information to get you started:
1. Calls a subvi and opens it's front panel
How Can I Control Whether or Not The Front Panel of a SubVI Pops Up When Called in LabVIEW?
2. The subvi has on its front panel a button to hide it's front panel
3 The main vi has a button to unhide the subvi's front panel
As far as numbers 2 & 3, what exactly do you mean by hide? Do you want to minimize the subVI's front panel? Do you want to bring some front panels to the front while pushing others to the back? Do you actually want to close and reopen the front panel? Will you ever want to hide the main VI?
Good luck!
Janell R | Applications Engineer
02-13-2007 05:23 PM
02-13-2007 05:24 PM
02-13-2007 05:46 PM
02-13-2007 05:46 PM
02-13-2007 06:41 PM
Once the subvi is opened dynamically, you can use the reference output from the Open VI Reference output throughout your vi to control any subvi front panel object. Just wire this reference into any property node to control subvi front panel objects or to read indicators.
You can specify the subvi path using a path control or path constant. You can write in the entire path, or you can get the main vi path and add the sub directories using build path if the sub is under the main's path. My example shows a control that has the subvi path. You could use the function that returns the current vi path, and use the Build Path function to add the rest of the subvi's path relative to the main vi's path. Study the functions for Build Path and Current VI's Path.
02-14-2007 09:47 AM
02-14-2007 10:39 AM