Connecting to a Real-Time Controller
- Updated2024-12-11
- 4 minute(s) read
Connecting to a Real-Time Controller
You can use the cDAQ-9189 chassis as expansion I/O from certain NI Linux Real-Time controllers.
Discover and configure the NI Linux Real-Time controller in NI MAX, then discover and configure the cDAQ-9189 chassis.
To network the cDAQ-9189 to a real-time controller, you need the following items:
- Host Computer Running Windows
- Supported Real-Time Controller
- LabVIEW Software, if not already installed
- LabVIEW Real-Time Module, if not already installed
- Driver for the Real-Time Controller, if not already installed
- NI-DAQmx Driver, if not already installed
- cDAQ-9189 Chassis
- Shielded Category 5 Ethernet Cable
- Power Supply or Power Connector
- External Power Supply (if using the power connector instead of the included power supply)
Complete the following steps.
- Install the LabVIEW, LabVIEW Real-Time Module, and driver software on the host machine as instructed in the getting started or quick start document for the real-time controller.
-
Install NI-DAQmx on the host machine if the driver was not installed in the
previous step.
- Insert the software media. If the NI-DAQmx installer does not open automatically, select x:\autorun.exe, where x is the drive letter. Complete the instructions. . Enter
- Register your NI hardware online at ni.com/register when prompted.
-
Download NI-DAQmx to the target using MAX. Refer to Remote
Systems in the Measurement and Automation Explorer
Help on ni.com/docs for more
information.
If you have problems installing your software, go to ni.com/support and search for the driver name.
Note Refer to cDAQ-9189 Driver Support for the earliest NI-DAQmx support version for the chassis.
- Set up your real-time controller hardware and install software to it as instructed in the getting started or quick start document for the real-time controller.
- For cRIO and IC controllers, perform a custom installation of the NI-DAQmx feature to the controller. In MAX, expand Remote Systems Real-Time Controller and use the Add/Remove Software option. Select the custom installation option and the NI-DAQmx feature, then follow the prompts to complete the installation.
- Connect one end of the Ethernet cable to an Ethernet port on the chassis, and the other end to a switch or network connection on the same subnet as your real-time controller, or directly to an open network port on your real-time controller. For more information about the recommended configurations for networking the cDAQ chassis in a real-time system, refer to Topology Options.
- Power the chassis using the included power supply or the included power connector with an external 9 V DC to 30 V DC power source.
- To add the chassis to the software configuration on the real-time target, open NI MAX on the host computer. In the MAX configuration tree, expand .
- Click Add Network Device, and then Find Network NI-DAQmx Devices.
-
In the Find Network NI-DAQmx Devices dialog box that opens, do one of the following:
- Check the box that corresponds to your chassis in the Hostname column.
- If you know the chassis IP address—such as 192.168.0.2—enter it into the Add Device Manually field, and click the + button.
- Enter the hostname of the chassis; the default hostname is cDAQ918x- <serial number>, where the x represents the last digit of your cDAQ chassis model number.
If your chassis does not appear in Available Devices, click Refresh List. If the chassis still does not appear, contact your system administrator to confirm that the network is working and that a firewall is not interfering with discovery. For additional troubleshooting resources for the cDAQ chassis, refer to Verifying the Installation in MAX and Troubleshooting Chassis Connectivity in MAX.
-
Click Add Selected Devices. The cDAQ chassis is added
under the real-time controller in the MAX configuration tree.
Figure 12. Adding the cDAQ Chassis to the Real-Time Controller in MAX -
If the cDAQ chassis is not reserved automatically, select the chassis and click
the Reserve Chassis button. Refer to the Reserving
the Chassis in MAX section for more information. After the chassis is
reserved by the real-time controller, the modules in the chassis are visible in
the MAX configuration tree.
Figure 13. Reserved cDAQ Chassis View in MAX - Self-test your chassis in MAX by expanding the real-time controllerNI cDAQ-<model number>, and selecting Self-Test. Self-test performs a brief test to determine successful chassis installation. When the self-test finishes, a message indicates successful verification or if an error occurred. If an error occurs, refer to ni.com/support and search for the driver name. , right-clicking
-
Run a Test Panel in MAX by expanding the real-time controllerTest Panels to open a test panel for the selected
module.
, right-clicking the C Series module, and selecting
If the test panel displays an error message, refer to ni.com/support.
Click Close to exit the test panel.
1 The cDAQ-9138/9139 for LabVIEW Real-Time controllers will not work in this configuration.
Related Information
- cDAQ-9189 Driver Support
Determine the earliest driver version supported for your product.
- Topology Options
Recommended networking topologies are described in this section.
- Verifying the Installation in MAX
- Troubleshooting Chassis Connectivity in MAX
If your cDAQ chassis is not discovered or becomes disconnected from the network, try the following suggestions.
- Reserving the Chassis in MAX