04-28-2010 10:28 AM
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!
05-10-2010 10:47 AM
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.
05-12-2010 01:09 PM
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_