LabVIEW Real-Time (RT) Configuration

ECU Measurement and Calibration Toolkit Help

Edition Date: October 2018

Part Number: 371602T-01

»View Product Info
Download Help (Windows Only)

LabVIEW Real-Time (RT) combines easy-to-use LabVIEW programming with the power of real-time systems.

PXI System

When you use a National Instruments PXI controller as a LabVIEW RT system, you can install a PXI CAN or PXI XNET card and use the ECU M&C Toolkit to develop real-time applications for XCP or CCP using NI-CAN. You can also use the integrated ethernet ports for TCP and UDP communication.

As with any other NI product for LabVIEW RT, you can install the ECU M&C Toolkit software to the RT system using the Remote Systems node in MAX. For more information, refer to the LabVIEW RT documentation.

After inserting the PXI CAN cards and installing the NI-CAN or NI-XNET and ECU M&C Toolkit software to the LabVIEW RT system, you need to verify the setup.

NI-CAN on PXI RT System

Within the MAX Tools menu, select NI-CAN»RT Hardware Configuration. The RT Hardware Configuration tool provides features similar to Devices and Interfaces on the local system. Use the RT Hardware Configuration tool to self-test the CAN cards and assign an interface name to each physical CAN port.

NI-XNET on PXI RT System

On the RT target, you can configure your NI-XNET hardware the same way as on the local system. Find your PXI target device in MAX under Remote Systems and expand the tree. Open the Devices and Interfaces node and perform a self-test for all NI-XNET devices.

CompactRIO System

To install the ECU M&C toolkit to the CompactRIO target using MAX, expand the Remote Systems node, right-click your target's Software node, and select Add/Remove Software to launch the Real-Time Software Wizard.

For using XNET CAN modules with CompactRIO, install the NI-XNET software on the target using MAX. Refer to NI-XNET Hardware and Software Help for information about generating and loading an FPGA bit file to enable access to the modules from the LabVIEW Real-Time operating system.

CompactRIO FPGA-based CAN modules are supported by the NI-RIO software. CompactRIO FPGA-based CAN modules require an additional FPGA Bridge VI, which is available as part of the LabVIEW ECUMC examples. For more information about using CompactRIO FPGA-based CAN modules with NI-RIO software, refer to the NI-RIO documentation.

You can also use the integrated ethernet ports for TCP and UDP communication.

A2L Databases and SeedKey/Checksum Libraries on RT Targets

You need to download your A2L (ASAM MCD 2MC/ASAP2) database files and associated SeedKey and checksum libraries to the LabVIEW Real-Time target. The libraries must be compiled for the target platform and should be placed in the following location:

  • NI Phar Lap ETS (.dll): Same directory as A2L file
  • NI Real-Time VxWorks (.out): Root directory or /ni-rt/system
  • NI Linux Real-Time (.so): /usr/local/lib
    If your libraries use file names with version numbers, you need to create corresponding symbolic links without the version extension. Finally, execute the ldconfig command on the target (e.g. via SSH). In the A2L databases, specify your library names without "lib" prefix and file extension.

If libraries compatible with your platform are not available, consider using the Remote SeedKey Server (which is part of the LabVIEW ECUMC examples) to utilize a SeedKey DLL running on a Windows system over the network.

Refer to LabVIEW Real-Time documentation for instructions on how to transfer files to the target system, e.g. using FTP or SFTP, WebDAV, SD Cards, or USB drives.


Not Helpful