ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
To download NI software, including the products shown below, visit ni.com/downloads.
This example is a wrapper around the National Instruments NI-XNET C driver using PInvoke.
The following functions have been wrapped in niXNET.cs (see the NI-XNET Hardware and Software Manual for more information about the different functions):
The examples provided only cover CAN, excluding J1939.
Description-Separate-2
To be able to use the wrapper, you should install :
This code was created for NI-XNET 14.0 and is not owned by NI R&D.
NI currently does not support .NET for the NI XNET driver officially.
For more information, please refer to .NET Wrappers for NI XNET.
The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: https://ni.com/samplecodelicense.
Additional-Separate-2DISCLAIMER: The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.