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?
Solved! Go to Solution.
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: