We will look at how developing ‘web monitor and control application’ is made easier through NI SystemLink API
This is the example of a simple temperature controller that turns ON\OFF the heater to keep the temperature within the set point range. The temperature, limits and heater state data from LabVIEW VI is being continuously published to the Web page built using WebVI. I have embedded the quick demo of application through a GIF
Demo GIF explaining the control and monitor application
Above example code snapshot shows how to Publish and Subscribe to a topic using SystemLink API (in LabVIEW as well as WebVI)
- Use the URL of you NI Web Server to configure the HTTP and open SystemLink connection
- Use the SystemLink reference created to subscribe to a topic, read, publish to a topic or unsubscribe from the topic
- Based on the application, use the APIs in LabVIEW VI as well as WebVI
- Close the connection and destroy the HTTP configuration at the end