LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 9853 reads same message multiple times

Solved!
Go to solution

Hi,

 

When i tried to read on NI 9853 CAN 0 port, it will always reads the last message if there are no messages on CAN bus.

 

I have attached screenshot on my code. 

In the code read counter is 0 unless i dont send any message on CAN, When i send single message on CAN(using other tool connected to same can bus), read counter gets incremented by 1 on every 10msec. I check all CAN message everything is same, Mod1/CAN0 somehow reads the same message every 10 msec ..

Attached CAN log also.

 

Thanks in advance.

 

 

Best Regards
Sumit Memane
CLAD, CTD
Download All
0 Kudos
Message 1 of 5
(2,672 Views)

Hi sumit,

 

how do you create this logfile?

Mind to share code?

I never noticed such behaviour with a NI9853...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,644 Views)
Solution
Accepted by topic author sumit04

On the read side of the FIFO you need to act on the timeout. The FIFO returns the last valid data on a timeout. Maybe that is your problem.

Message 3 of 5
(2,636 Views)

hi GerdW,

I have a vi, which contentiously reading CAN message from NI-9853 Mod0 and writing it to ASCI file.

Best Regards
Sumit Memane
CLAD, CTD
0 Kudos
Message 4 of 5
(2,588 Views)

Hi 

Best Regards
Sumit Memane
CLAD, CTD
0 Kudos
Message 5 of 5
(2,584 Views)