LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you open a specified Labview Vi from a different Labview Vi?

I need to open a different Labview Vi when a certain function is performed from within my current Labview Vi.
0 Kudos
Message 1 of 7
(3,277 Views)
You can do this using vi server. These functions are located under the "application control" palette. The first thing that you will need to do is open a vi reference. You can use the path of the vi you want to open to obtain this reference. Then you can use a combination or just one property node and invoke node from the same palette. There are also examples of this located in LV find examples. Type in server and you will find example vi's using vi server architechtures. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 7
(3,277 Views)
Or just call a subVI statically. This is the simplest and most common method. Just exactly what are you trying to do?
0 Kudos
Message 3 of 7
(3,277 Views)
When an Emergency Stop 'button' is pressed I wish to jump into a different Vi which will allow me to restart a sequence of events. When this Vi is complete, i want to return to the original Vi, containing the emergency stop function. I will try the SubVI method (I'm not a very experienced user though...).
0 Kudos
Message 4 of 7
(3,277 Views)
It sounds like you can do this like Dennis said. Maybe try using a state machine architecture. hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 5 of 7
(3,277 Views)
Wes Galliver wrote in message news:<506500000008000000EAC60000-1079395200000@exchange.ni.com>...
> I need to open a different Labview Vi when a certain function is
> performed from within my current Labview Vi.

1) Use a "Open VI Reference"

(All Functions -> Application Control -> Open VI Refrence)

2) Connect a string (or path) with your VI's name into "VI Path" on
the "Open VI Reference"

3) Connect the "VI Reference" output to a "Property Node" reference
input.

(All Functions -> Application Control -> Property Node)

4) Right click on the "Property Node" and select:

Properties -> Front Panel Window -> Open
0 Kudos
Message 6 of 7
(3,277 Views)
Wes,

The best way to achieve this will be to use a SubVI. As you are not too familiar with labview I suggest that you read over chapter 7 of the labview pdf manual (which is available from the help>search the labview bookshelf menu).

I hope that this helps you to resolve your problem.

Tristan
Applications Engineer
National Instruments UK
0 Kudos
Message 7 of 7
(3,277 Views)