Configure a Static IP Address on Ethernet cDAQ

Updated Aug 3, 2023

Environment

Hardware

  • cDAQ-9181
  • cDAQ-9184
  • cDAQ-9185
  • cDAQ-9188
  • cDAQ-9189
  • cDAQ-9191

This article describes the steps to configure an Ethernet CompactDAQ (cDAQ) device with a static IP address on both Windows and Linux.

For Windows:

If your network admin imposes specific addressing requirements or if you are having trouble with a link-local connection between your Ethernet cDAQ device and your computer, you may need to configure a static IP address on your cDAQ device.

  1. The factory reset the Ethernet cDAQ device by holding down the reset button for more than 5 seconds. This will put the device into a default state and configuration. See the manual for the device-specific default configuration.

  2. Connect the Ethernet cDAQ device to the Ethernet port on your computer or the network you would like to connect the device to. 

  3. In Measurement & Automation Explorer (MAX), expand My System»Devices and Interfaces. Right-click Network Devices, then Find Network NI-DAQmx Devices.
     


    Figure 1. Find Network NI-DAQmx Devices
     

  4. In the Available Devices list, select your Ethernet cDAQ device, then click Add Selected Devices.


    Figure 2. Add Selected Devices
     

  5. On the Network Settings tab (1), choose Static in the Configure IPv4 Address dropdown (2), and enter a local IP address (e.g. 192.168.2.10) in the IPv4 Address field. Click Save to apply the settings. You will lose connection while the device restarts. 
     


    Figure 3. Network Settings
     

  6. Make sure the cDAQ chassis is connected to the same subnet as the one you just assigned to it. If you are using a Windows computer, you can find the subnet the device is connected to by connecting a computer to the network the device is using, running the ipconfig command, and looking at the IP address and subnet mask assigned by the router.
  7. In MAX, under Network Devices, right-click your cDAQ device, then click Add Device.
 

For Linux:

With an Ubuntu target, these suggestions on configuring the static IP address using NI-NAX are not possible since the nidaqmxconfig  tool does not provide this level of abstraction. Thus instead the following approaches are recommended:
  1. Configure the static IP on a Windows PC and then connect the chassis to the Ubuntu target
  2. Modify programmatically the IP using LabVIEW as detail in this resource