Interact with DSC Module Web Services
- Updated2025-11-07
- 2 minute(s) read
The LabVIEW Datalogging and Supervisory Control (DSC) Module includes built-in web services that expose DSC Module VIs functionality.
LabVIEW web services allow web browsers and HTTP-capable clients to interact with LabVIEW applications. You use URLs and HTTP methods to transmit data to the web service. The DSC Module includes the following web services:
Accessing the DSC Module Web Services
In a web browser or other web client, you use URLs and HTTP methods to exchange information with the web service, as well as send values as post data using the POST HTTP method. Refer to the World Wide Web Consortium at www.w3.org for more information about HTTP method definitions, including the POST method.
The following figure shows an example URL that a web client might use to exchange data with the Alarms & Events Web service, nialarm:
DSC Module Web services can return data as XML- or JSON-formatted responses. By default, the DSC Module Web services return XML-formatted responses.
Error Handling
After responding to a client request, the web service displays a response message in the HTTP header. The HTTP header describes whether an operation succeeds or fails. If an operation succeeds, the Reason-Phrase field in the HTTP header is empty. If an operation fails, the Reason-Phrase field in the HTTP header contains information about the failure, such as the LabVIEW error code and explanation of the error.