You have to install NI-Serial 9870 and 9871 Scan Engine Support on your Real-Time controller by using a custom software installation. This can be done in NI Measurement and Automation Explorer (MAX) by the following steps:
- Expand your Real-Time Target under Remote Systems, right-clicking Software, and selecting Add/Remove Software.
- Choose Custom Software Installation and click Next.
- In the Custom software installation window, select the NI-Serial 9870 and 9871 Scan Engine Support.
- Click Next to start the installation.
- After the NI-Serial 9870 and 9871 Scan Engine Support is installed, add your cRIO and modules to a LabVIEW project in Hybrid Mode .
- Ensure you keep the 987x module under the Real-Time target.
- If you do not already have a main FPGA VI, create a new FPGA VI, and run it interactively and ensure it deploys to the target. After the FPGA bitfile successfully deploys, you should now see the device ports in NI MAX.
If you are planning to load and run the FPGA VI programmatically from the Real-Time VI using the Open FPGA VI Reference or Run Method, make sure that a considerable delay (at least 2 seconds) is left between the moment when the FPGA VI starts running and when the serial communication is opened with the NI VISA VIs. This will ensure that the needed intermediate layers are already up and running before trying to establish communication. Not doing this could lead to
when opening the VISA port.
If your Real-Time VI uses FPGA invoke method Run
, you should place wait function after this method.