This tutorial shows you how to install and configure SystemLink to use tags and messages on a CompactRIO with LabVIEW NXG.
Make sure you have LabVIEW NXG and the latest compatible version of the NI-CompactRIO driver installed.
Launch NI Package Manager and search for "SystemLink". Select LabVIEW SystemLink Toolkit.
Follow the prompts to complete installation.
After you install the LabVIEW SystemLink Toolkit, launch NI Web Server Configuration.
Select Secure remote access and click Next.
Create a password and click Next.
Select a HTTPS certificate and click Next.
Review the Configuration summary and click Finish to start the web server.
The NI Web Server is now running.
If you arrived here from the LabVIEW NXG example code, return to your project. Otherwise, complete the following steps to create a new project.
Launch LabVIEW NXG and navigate to the Learning tab.
Navigate to the Examples tab and select the Programming CompactRIO folder.
Select Tags and Messages with CompactRIO.
Name your project and click Create.
After the project opens, set up how you want to authenticate credentials when the VI runs.
Choose from the following options. See below for more detailed information about these authentication credentials.
All data communication happens between the target and host machine. The host acts as the SystemLink Server in this case. Data can be shared between applications running on the host and all targets connected to the host. The credentials and HTTPS certificate (if any) are managed automatically so the target can securely connect to the host.
Communicates with a server machine with SystemLink Server installed using HTTP credentials specified when opening the configuration. These credentials should be securely deployed to the target rather than hard-coded on the diagram. The target does not need to be managed by the server in this case. If the server is using HTTS with a certificate that is not signed by a commercial CA, you need to either:
Export the certificate from the server, deploy it with your VI, and reference the certificate when opening the configuration
Disable server verification when opening the configuration, which opens the data communication to man in the middle attacks.
Communicates with www.systemlinkcloud.com instead of an on-premise installation of SystemLink Server. This requires going to SystemLink Cloud and generating an API key to reference when opening the configuration. This key should be securely deployed to the target rather than hard-coded on the diagram.
Now that we’ve set up the Authentication Credentials, you can run the VI and begin using SystemLink Tags and Messages. For more information on communicating with tags, refer to the SystemLink Manual.
SystemLink NXG API
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.