From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Configure your cRIO programmatically with the System Configuration API

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Hardware

  • CompactRIO|SingleBoardRIO
  • PXI|VXI

    Software

  • LabVIEW

    Driver

  • NI RIO
  • Other

Code and Documents

Attachment

Overview

The example demonstrates how to use the NI System Configuration API to configure the IP address of a remote target.

 

Description

The NI System Configuration VIs can be used to gather information and perform tasks programmatically on both local and remote systems. The NI System Configuration API could be seen as a programmatic possibility to perform actions that can be normally done with the Measurement & Automation Explorer (MAX).

The example uses the NI System Configuration API to list the available targets and to configure the IP address settings for the selected device.

After the changes are applied the example waits for the target to reboot (which is normally necessary to apply changes to IP address settings).

 

Requirements

 Software

  • LabVIEW 2012 Base Development System (or compatible)
  • NI-RIO 13.0 (or compatible)
  • NI System Configuration API 14.0 (or compatible)

 Hardware

  • any National Instruments remote target like a Real-Time PXI(e) controller, CompactRIO or CompactDAQ controller

 

Steps to Implement or Execute Code

  1. Open the attached file
  2. Select the desired IP Address Mode
  3. Configure the IP settings if necessary (make sure the IP settings are compatible with your network)
  4. Run the VI (please be patient: the target could take a few minutes to reboot)

 

Additional Information or References

System Configuration API -  Configure Remote Target IP address - Front Panel.png

 

System Configuration API -  Configure Remote Target IP address - Block Diagram.png

 

 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors