Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I measure the transmission rate of a CAN message being broadcast by a node?

My application needs to measure the broadcast transmisssion rate of a message sent out from another CAN node which is being received by my PC with NI CAN card. I'm using LabView CAN software.
0 Kudos
Message 1 of 4
(4,079 Views)
You can use the bus monitor in MAX to log messages to file, then you can just look at the time stamps to see the transmission rate.

- Right click on the port and select bus monitor
- Click Stop
- Click Options
- Click Stream to disk
0 Kudos
Message 2 of 4
(4,079 Views)
You can setup a CAN Read VI using the CAN Frame API's, and read the timestamp of the messages as they come in, then just subtract the timestamps to find time between messages. If you are looking for only 1 CAN message, the CANconfigure VI's are able to load filters, which will keep processing delays low.

dhuff
0 Kudos
Message 3 of 4
(4,079 Views)
The Bus monitor included in the NI-CAN driver 2.1.1 and accessible in MAX doing a right mouse click on the CAN Port has default information included for instance Frame rate, dt min , dt max and total number.
The same information is delivered by the timestamp on every message. but you have to do the calculations by yourself.
0 Kudos
Message 4 of 4
(4,079 Views)