What Interfaces does the XNET Compatibility Layer Work On?
Primary Software: Driver Software>>NI-XNET
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: Driver Software>>NI-CAN
I understand that a lot of the new devices used for bus communication specifically LIN and CAN, are listed as using the XNET interface and API. I have code written in NI-CAN for either a LIN bus or a CAN bus that I used to use with the old style cards. Can I use this code with this new hardware? What do I need to do to make this code work?
The NI-XNET driver uses an updated API that offers many performance, ease of use, and long term support benefits over the legacy NI-CAN. In addition, the hardware offers additional performance and flexibility for a system. As projects progress, it would be a good practice to migrate to this new hardware and software. For information on how to migrate programs, visit this Developer Zone on Migrating NI-CAN Applications to NI-XNET.
Sometimes though, you might have a program that was written using the NI-CAN driver and don't have the time or capability to rewrite the program. For high and low speed CAN communication, you will be able to reuse this code on an XNET CAN card if you install the XNET Compatibility Library for NI-CAN.
This compatibility library only supports high and low speed CAN communication, and does not provide support for LIN devices or the associated programs. To do LIN communication on an XNET device, the program will need to be recreated. In addition, the compatibility library does not provide perfect compatibility. For a list of known compatibility issues, see the documentation found in NI-CAN Hardware and Software Manual: Appendix F: Broken Compatibility. A link to this document is available in the related links section.
KnowledgeBase 5UKBCQ4H: Installing the NI-XNET Compatibility Library for NI-CAN
Developer Zone: Migrating NI-CAN Applications to NI-XNET
Product Documentation: NI-CAN Hardware and Software Manual Appendix F
Report Date: 03/14/2012
Last Updated: 03/15/2012
Document ID: 5VDG4QBT