Basic CAN Communication
With the NI 986x modules, you can implement basic CAN communication consisting of reading and writing frames and signals on the network. As NI-XNET modules, they use a high-level API that simplifies development and reduces development time by providing intuitive NI-XNET function calls. You can use this same API in USB, Ethernet, and Wi-Fi NI CompactDAQ systems as well as CompactRIO systems using the cRIO-911x or cRIO-908x chassis.
Figure 3. The NI-XNET API provides high-level function calls for the intuitive reading and writing of CAN frames and signals.
Standardizing CAN Communication for Different Settings and Environments
Because the NI 986x modules are NI-XNET modules, they are ideal for developing CAN applications and projects that need to be standardized for many different environments and settings. You can use the NI 986x modules for mobile USB-, Ethernet-, and Wi-Fi-based NI CompactDAQ systems as well as headless, embedded CompactRIO systems by applying the same NI-XNET API to both platforms. In addition, because the same API is used for PXI and PCI CAN interfaces, you can easily port the same code to any of the hardware platforms by copying and pasting. This can significantly reduce development time because you use a common API for everything from a lab test system using PXI to a mobile USB CAN communication system using NI CompactDAQ to a headless, CAN-based logger using CompactRIO.
Real-Time Testing Applications
Real-time testing involves the use of a real-time environment to implement a test application. Engineers use real-time testing techniques primarily to achieve greater reliability and/or determinism in a test system. These techniques also play a critical role in the development of many of today’s products and systems. Examples include durability, life-cycle, and other test systems that operate for long durations or with extended operator absence, requiring the superior reliability provided by real-time execution platforms. Superior reliability also is required by environmental test cells, dynamometers, hardware-in-the-loop (HIL) simulators, and similar test systems that use closed-loop control execution, which must feature the low-jitter determinism of real-time execution platforms.
NI offers a software product to help you implement real-time testing applications more efficiently. NI VeriStand is a configuration-based software environment that provides a ready-to-use yet customizable tool for creating real-time test systems. Many real-time testing applications involve CAN communication, and NI VeriStand features native support for all NI-XNET products, which means native support for the NI 986x modules. NI VeriStand exposes common functionality for CAN applications in addition to offering the flexibility you need to expand the software to meet your applications goals.
Figure 4. You can configure NI-XNET CAN interfaces in NI VeriStand for many typical CAN communication tasks and functions.