12-12-2016 02:06 PM
Hello,
I'm trying to read CAN messages using XNET vi's. I run a cRIO RT with an NI 9862 card. I've created an XNET session to read a single message but no data is coming through.
The dbc file has been supplied from a customer that we need to be able to communitcate with an ECU. Using Busmaster I can read messages from the ECU without a problem. I don't get any data coming through on XNET using VI's and I dont see anything at all on the XNET Bus Monitor.
Any ideas on what I could try on the XNET side?
I'm using XNET 15.0, LV14 and NI RIO 15.
Thanks!
12-13-2016 03:17 AM - edited 12-13-2016 03:45 AM
Have you compiled your fpga and connected to the crio?
If possible can you post your Project/VI.
12-13-2016 06:43 AM
Have connected the suply voltage to the c-module?
12-13-2016 08:32 AM - edited 12-13-2016 08:32 AM
Yes to both. Have run an FPGA blank bit file and the C-series module has 24VDC supply. I've tried using XNET Bus monitor launched from NI-Max and it's blank.
I get no errors when using XNET vis on the RT target and it seems to be reading the default value for the channels (checked this by changing the default value in the dbc configuration).
My CAN knowledge is pretty basic so am stumped by this.
12-13-2016 09:37 AM - edited 12-13-2016 09:39 AM
Can you show us your project or a sample project?
It is far easier to view some code, to understand what you are doing.
Also how are the RIO configured in hardware?
In what slot is the XNET module located?
edit: What cRIO are you runing the code on ?
12-14-2016 06:26 AM - edited 12-14-2016 06:27 AM
The original setup run on a cRIO-9035 in slot 4.
I've moved from the cRIO and connected the NI 9862 to a cDAQ-9171 (1 slot USB) card. I've attached a sample project for the cDAQ card with a VI running single Input and single Output session with 1 signal in each to run on the cDAQ unit. I can't attach the dbc file as it contains customer information.
No changewith this setup either. The LED's show solid green/solid red. As soon as plug into the ETAS card I can see bus traffic.
During the last 24hrs I've also tried different cables, power supply, connecting COM to Pin3 and Pin6, laptops, XNET/CRIO versions.
Thanks
12-14-2016 07:59 AM - edited 12-14-2016 08:00 AM
Hi DavidT,
It seems to work fine to me, all I've done is create the sessions at runtime.
Can you view can traffic in the bus monitor in MAX now?
12-14-2016 10:31 AM
Hi AO1,
Unfortunately same outcome. No errors, no data on the bus and LED's steady green/steady red.
I have now purchased a replacement card (NI 9853) to see if it's the 9862 card that's faulty.
Thanks