Programmatically Enable and Disable the LabVIEW Web Services in an Executable

Updated Nov 29, 2023

Reported In

Software

  • LabVIEW
  • LabVIEW Professional
  • LabVIEW Full

Issue Details

I need to control the start of the LabVIEW Web Services within my LabVIEW Executable Application. Is this possible to programmatically enable or disable the LabVIEW Web Services using any LabVIEW API? 

Solution

No, in an Executable the LabVIEW Web Services are automatically enabled.

The LabVIEW Web Server can be programmatically enabled or disabled, but it would only take care of the Web Server meanwhile the Web Services are still enabled in the executable.

As soon as you start the executable, the Web Services starts with it (after all, this is the point at which a Web Service is deployed with an application). There is definitely no LabVIEW API that allows you to manually start/stop the Web Service.

 

Additional Information

A feasible workaround would be to use an executable, to open the executable that handles the Web Services. In this sense, you can control the execution of the code and activate the web services when they are really needed.