Using a Web Application with a CompactRIO Device

Leverage the following architectures to use your web application with a CompactRIO device.

  • Access a web application on your CompactRIO.
  • Access a web application on a PC.
  • Access a web application on the cloud.

Use the following table to determine the best architecture for your system and web application.

Architecture Use case How to access How to implement
Access a web application on your CompactRIO.
Note You cannot use SystemLink APIs using this architecture.
Light-weight web applications:
  • Browser-based simple configurations
  • Human-machine interfaces
Enter the IP address of your CompactRIO in a browser on the same local network as the device.
  • Create and Access a LabVIEW Web Service on the CompactRIO.
  • Follow the instructions for Hosting a Web Application on the NI Application Web Server.
  • Follow the instructions for Configuring CORS for a LabVIEW Web Service for your LabVIEW Web Service running on a CompactRIO while developing the web application in G Web Development Software.
    Note NI recommends enabling CORS access to the LabVIEW Web Service only during development and disabling CORS access when deploying the web application to the CompactRIO. For more information about how to protect your web application and data, refer to Security in NI Web Technology.
Access a web application on a PC.
  • Use SystemLink Tag and Message APIs
  • Avoid putting the server burden on your CompactRIO
Enter the IP address of the PC in a browser on the same local network as the PC and CompactRIO.
  • Access the data from your CompactRIO device using one of the following options:
    • Follow the instructions in Communicating Data with Web Services Using WebVIs, such as SystemLink Tag and Message APIs.
    • Follow the instructions in the Tutorial: Creating and Publishing a LabVIEW Web Service to the Application Web Server (Real-Time, Windows) on the PC.
  • Follow the instructions for Hosting a Web Application on the NI Web Server
  • Follow the instructions for Configuring CORS for a LabVIEW Web Service if your development PC and hosting PC are different machines.
Access a web application on the cloud.
  • Use a desktop or mobile device to access the web application over the internet
Enter the URL for the web application in a browser connected to the internet.
  • Use the NI Web Server and data services included with G Web Development Software to host a public internet accessible web server.
    Note For more information about how to protect your web application and data, refer to Security in NI Web Technology.
  • Utilize a 3rd party service with public internet accessible web application hosting.
    Note You may need to configure a 3rd party server to support the application/wasm MIME type for files with the .wasm file extension.