Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How to speed up the NI 9853 CAN data acquiring with ID filters

Hi,

I am using NI 9853 on a cRio 9111 to collecting CAN data. I am only interested in three IDs from the CAN database.

I need collect the CAN data in a 10 hz base.

 

I am using FPGA and Labview real time.

 

The problem I have is that somehow the CAN seems receiving the three ID frame randomly. I can't get all three frame within the 10 hz period.

(I can get all ID data in every 2-3 seconds.)

 

Attached is the testing project(LV 2009, FPGA and Real time). Is there any way to make CAN fast or to optimize the code to make it work?

 

Thanks!

0 Kudos
Message 1 of 3
(6,905 Views)

Hello LUX_,

 

It is possible that these frames are only going on the bus every few seconds...which means you will only be reading them every few seconds.  Are you sure that all 3 frames are going on the bus within100ms?  You could use the shipping example that logs all frames to a file to find out exactly.

 

 

O. Proulx
National Instruments
www.ni.com/support
0 Kudos
Message 2 of 3
(6,824 Views)

Thanks O. Proulx.

 

Somehow after I re-write the same FPAG code on a new vi, it is magically working now.

The CAN loop is 100 or even 1000 times faster than before. I was able to get all three frame within the 10Hz period.

 

Thanks for your reply.

 

Lux_

 

 

0 Kudos
Message 3 of 3
(6,795 Views)