11-25-2009 07:17 PM
Hi,
I am new here. I was wondering if there was a way to open a VI from another VI. So for example, I have 5 buttons on a VI that references to 5 other types of VI's. I want to be able to go to the Main.vi just click on "File 1" button, and file1.vi would open. I tried using SubVI's but for some reason the outputs of my file1.vi, file2.vi . . . stay on the Main.vi. All I want on the Main.vi are the buttons, and the individual files will display everything else. I would really appreciate if someone could help me out with this.
Thanks
omss
11-25-2009 07:21 PM
11-25-2009 07:26 PM
Where would I find example discussions? This forum is quite confusing to navigate. Search functions aren't helping me either.
Thanks
11-25-2009 07:35 PM
11-25-2009 09:30 PM
hiii...
you can use event structure to track event on any button and then depending on that can open another vi as a sub vi.
for that use the sub vi node setup on right clicking the sub vi icon and check open front panel when called option.
this will show you front panel of another vi.
you can have a look at following vi's
may be this will help you.
cheers.....
11-25-2009 10:17 PM
11-26-2009 05:15 AM
In general sub-vi's try to stay closed. To pop it up, you'll need to either:
1. change the vi's properties to always show front panel
2. pop the front panel through properties in the code
3. Change the sub-vi call in main.vi through Call setup.
I prefer solution #3. Just r-click your sub-vi, Call Setup, and "Show Front panel when called".
Unless i misunderstood that should solve it, no?
/Y
11-30-2009 03:00 PM
12-02-2009 01:45 PM
12-02-2009 02:06 PM