ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programatically starting an application

Hi all

I am creating an application(APP1) which will run on RT PXI. I need to start this application only if I receive a specific command over TCP/IP or DATASOCKET. Reading data over TCP/IP or DATASOCKET is done by another application(APP2) which runs on the same RT PXI. Or basically what I need is to start APP1 from APP2, can anyone tell me how do I achieve this?

Thanx a lot

Arun
0 Kudos
Message 1 of 4
(2,927 Views)
I haven't tried this with the real-time engine, but on a PC you would get a reference to the VI (let's say by using open VI reference) and wiring that reference into an invoke node with the Run VI method selected. Set Wait until done to F to allow your VI to continue running. Both functions can be found in the Application Control palette. If this doesn't work, you can simply place your VI inside a case structure inside a loop which waits until a flag is recieved to run the VI. Set the flag when you recieve the command.

___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(2,915 Views)
Continuing along the lines of Tst's answer, here is a link to an example program that demonstrates running one VI from another VI using VI server.

I hope it helps.

Ankita
0 Kudos
Message 3 of 4
(2,892 Views)
Thanks a lot for the example, thats exactly wat i needed, but saw it very late,

thanks again
0 Kudos
Message 4 of 4
(2,857 Views)