Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I set up timed transmission in NI-CAN

I want to get a timestamp from the NI-CAN card whenever a frame is transmitted successfully. Similary to the timestamp I get when reading messages. How can I configure the NI-CAN card to support timed transmission?

Best regards
Edgar Vorland
READ Matre Instruments AS
Norway
0 Kudos
Message 1 of 2
(3,918 Views)
Hi,

There's no direct way to read the value of the timestamp for an outgoing frame.

One indirect way of getting the timestamp is to use a wait function (or notification in C) configured to detect a Write Success event. When the wait returns you can use the GetTimer function to retreive the timestamp value of the NI-CAN driver. There would be some sort of error.

For more accurate timing you could use the RTSI bus to generate a pulse after a frame has been transmitted. The RTSI signal can be timestamped by a counter board (or another CAN board configured for Timestamp on a RTSI event).

Let me know if you have any questions.

DiegoF.
National Instruments
0 Kudos
Message 2 of 2
(3,918 Views)