From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can a VI check to see if another VI is running?

Hello,
I am fairly new to LabVIEW and I have a question. I have created a client/server program. In order for it to work, of course, the server must be running before the client programs are executed. My question is, is there a way for the client programs to check to see if the server is running? And if it isn't can the clients automatically start the the server program?


Thanks for the help.
0 Kudos
Message 1 of 3
(2,328 Views)
Hi,

I wrote a little VI that demonstrate how to do what u asked for.

1. The VI first get all the VI names, that are at the computer memory.
2. It search for the VI Server Name (yours...) and if it's not loaded it runs it.
3. The VI create a VI Reference to the VI that we want to load and run, and then execute it.

That's it ....

The Bush-Man
Message 2 of 3
(2,325 Views)
Thanks,
That is exactly what I was looking for.
Works perfectly for my application

Thanks again,
Laura
0 Kudos
Message 3 of 3
(2,319 Views)