Jump to content

How to navigate between 2 or more VI's


Recommended Posts

Hi,

I m a new member,& have started using Labview recently.(7.1).I m doing a small proj where in their is a main menu screen having buttons that call different plant section.When i click on any of the btn's i shud go to that screen or VI & vice versa.I shud be able to navigate between all VI and also all the process VI shud be running at the background simultaneously.

Can u please help me to solve this problem.

thanks.

pal

Link to comment
  • 2 weeks later...
I m doing a small proj where in their is a main menu screen having buttons that call different plant section.When i click on any of the btn's i shud go to that screen or VI & vice versa.

Well, the easiest way to do this would be to use the event structure to handle button presses. When you press a button, a VI would be called and it would pop-up its front panel. The VI's to be called can be just placed on the diagram of the main VI. Follow this link for more info on how to create a pop-up VI:

http://forums.lavausergroup.org/index.php?...=findpost&p=255

Once the VI terminates (by pressing a button on the front panel) the front panel will close and you will be returned to the main VI. This method will work but is limited because you can only interact with one screen at a time. You cannot have multiple screens running in parallel. If you want to do this then you need to call the VI's dynamically using VI server.

post-2-1089529460.gif?width=400

This implementation will allow you to have the main menu VI running while the screens are open.

If you need to run a process in parallel, I would suggest using a parallel loop. You can also place this parallel loop inside a subVI (to reduce diagram space) and place the subVI next to your main menu loop which will handle the screen launching.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.