Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Can bus activity

Hi all,
I'm using all ports of a PCI series 2 CAN card and I would like to monitor the bus activity using without opening bus monitor.
 
Does anyone know how to detect if the CAN bus is still sending messages or not using channel-API?
Sometimes the bus seems to freeze after a while and not showing any changes at all. I have to stop the vi and run again to see the change value.
I am trying to read lots of messages (each contain maximum 64 channels). I use Multi-Chan Single-Samp 1D Dbl type to read.
 
Thank you
-bm-
0 Kudos
Message 1 of 2
(3,464 Views)

On the Read task, there is an output "number of Samples Returned" look at that when running your VI.

A second thing to try is to right click on the CAN Read, click on select type, and change the output type to something with a timestamp.  If the timestamps do not change, then the messages have stopped.

0 Kudos
Message 2 of 2
(3,446 Views)