Call a subVI from the front panel

This is a discussion on Call a subVI from the front panel within the labview forums in Programming Languages category;  Hello! I've made part of my diagram into a sub VI. I also want to be able to open the parameter settings of the sub VI when I'm running the program. For example, if I click a button then the panel of the sub VI will open. The labview HELP talks things about pereference or property node but isn't clear about how to do it. Thanks so much!...

Go Back   Application Development Forum > Programming Languages > labview

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-15-2008, 02:10 PM
FElicia
Guest
 
Default Call a subVI from the front panel

 Hello! I've made part of my diagram into a sub VI. I also want to be able to open the parameter settings of the sub VI when I'm running the program. For example, if I click a button then the panel of the sub VI will open. The labview HELP talks things about pereference or property node but isn't clear about how to do it. Thanks so much!
Reply With Quote
  #2  
Old 08-15-2008, 04:10 PM
JeffOverton
Guest
 
Default Re: Call a subVI from the front panel

I'd look into Event Structures if you want it to happen on a button click.  Next, to make the front panel show, just drop your subvi like normal, right click on it, and select "SubVI Node Setup..." then check "Show Front Panel When Called" and "Close Afterwards if Originally Closed"
Reply With Quote
  #3  
Old 08-15-2008, 06:10 PM
smercurio_fc
Guest
 
Default Re: Call a subVI from the front panel

Open up the Example Finder (Help -> Find Examples), change to the "Search" tab and enter "event" in the search box. Open the example "New Event Handler". It should give you a good idea of how to do this. The individual subVIs that get opened are set up via their properties. In other words if you open the subVI and select File -> VI Properties, and change to the "Window Appearance" item you will see how it's set up to act as a popup.
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 09:40 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.