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
- Open the attached file
- Select the desired IP Address Mode
- Configure the IP settings if necessary (make sure the IP settings are compatible with your network)
- Run the VI (please be patient: the target could take a few minutes to reboot)
Additional Information or References
**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.**