LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically start NI Shared Variable Engine

Solved!
Go to solution

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 4
(1,089 Views)
Solution
Accepted by JScherer

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 4
(1,039 Views)

Thanks,

 

I can roll this out fairly quickly, is there any way to start the service without admin privileges?

0 Kudos
Message 3 of 4
(1,009 Views)

Not as far as I know!

Lucian
CLA
0 Kudos
Message 4 of 4
(1,005 Views)