LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically start NI Shared Variable Engine

We have a few computers around our lab that will arbitrarily boot without the NI shared variable engine starting as it should. As such I have to walk users through the process of starting the NI Shared Variable Engine service outlined in the link here ( https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LgKSAU&l=en-US )

 

However, this is frustrating for all involved and I would like to find a way to start the service programmatically either as the first step in my program or as a separate quick fix.exe . Is there a way I can do that with LabVIEW?

0 Kudos
Message 1 of 2
(70 Views)

You can start a Windows service from cmd (with administrative rights) using the command: NET START service name. So for NI Shared Variable Engine that would be:

NET START "NI Variable Engine".

If you start LabVIEW or your executable as admin, you can call System Exec.vi like this:

LucianM_2-1614358417093.png

 

 

 

 

Lucian
CLA
0 Kudos
Message 2 of 2
(20 Views)