NI-XNET CAN Programming
Figure 1. Simple NI-XNET Example Code for Reading and Writing CAN Signals
NI-XNET FlexRay Programming
Figure 2. The Same NI-XNET Code Adapted to Reading and Writing FlexRay Signals by Changing the Session Inputs
Emerging embedded networks, especially in the automotive industry, are combining CAN, LIN, and FlexRay buses to maximize performance while maintaining cost benefits and reducing transition efforts. A common API simplifies the development and maintenance of applications that prototype, simulate, and test these hybrid embedded networks. With the extra performance benefits of the FlexRay bus comes added complexity and bandwidth requirements for test, simulation, and prototyping systems.
The NI-XNET API is designed to make it easier for both new and experienced CAN, LIN, and FlexRay engineers to get up and running quickly with CAN, LIN, and FlexRay applications. With the tight integration of the LabVIEW project, more than 140 out-of-the-box examples, example signal databases, and comprehensive documentation, NI-XNET makes it easier to develop CAN, LIN, and FlexRay applications. NI-XNET also makes it easy to use the same software application in different environments and use cases by working with the same NI-XNET API for PCI, PXI, NI CompactDAQ, and NI CompactRIO.