11-08-2014 08:09 AM
Hi all,
I'm using a cRIO 9068 with a NI9862 (CAN module).
I'm programming in C/C++ with Eclipse on windows
Without trying to access CAN via xnet, the C application compiles and runs fine on the 9068.
Now I want to use xnet functions to access CAN.
I found an nixnet.h in <NI installation dir>\Shared\ExternalCompilerSupport\C\include, so the compiler is satisfied.
But the linker doesn't find a library (I tried "nixnet" and "xnet") neither do I find a xnet library for cRIO 9068 on my harddisk.
Where do I find this library? Do I have to install another xnet driver besides the normal xnet driver (which I have installed, version 14.0).
Thanks for your answer in advance
Solved! Go to Solution.
11-10-2014 03:40 AM
Hi!
the driver readme states the following:
The NI-XNET software supports Microsoft Visual C/C++ version 6.
But for Linux-RT based targets (cRIO 906x and 903x) in combination with XNET modules (986x) I found a ressource that states that you should be able to include the "nixnet.h" header (as you seemingly already have done) and "link against libnixnet.so at runtime to get correct symbols"
You should find the according file in the following folder:
C:\Program Files (x86)\National Instruments\RT Images\NI-XNET\Linux-armv7
Best regards
Christoph
11-10-2014 04:49 AM
Hi Christoph,
thank you for the solution.
It compiles and works now (at far as I tested read serial number of module and blink LEDs).
11-10-2014 06:15 AM
That sounds nice