LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Find CAN frame Receiving time

hi,

how to find CAN Frame Receiving Time Delay.

0 Kudos
Message 1 of 8
(2,453 Views)

Hi Gokul,

 

delay to what?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(2,420 Views)

Receiving CAN Frame Response time.

0 Kudos
Message 3 of 8
(2,393 Views)

Hi Gokul,

 

CAN messages usually come with a timestamp.

So you know when you send them and you can read when you received the answer.

What's exactly your problem?

 


how to find CAN Frame Receiving Time Delay.
Receiving CAN Frame Response time.

Mind to write more text in your message than just that?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(2,386 Views)

hi,

I can't able to find timestamp in CAN Receive frame.please find the my code for your Reference.

Details:

Labview :2016

Diagnostic tool kit(UDS) 

Send Commad: 10 03

Receive Commad:50 03 XX XX XX

i want time delay between TX and RX Frame using this tool kit.

 

Download All
0 Kudos
Message 5 of 8
(2,361 Views)

Hi Gokul,

 

I can't able to find timestamp in CAN Receive frame.please find the my code for your Reference.

I see them in "default" CAN messages, like shown here:

check.png

 


Details:

Diagnostic tool kit(UDS) 


It's the first time you mention that diagnostic toolkit: read it's help to learn about its options. (I don't have bought/installed that toolkit.)

Use "plain" CAN functions when you want to get their functionality…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(2,357 Views)

i can't able to use default CAN Message because my architecture is already defined in Diagnostic tool kit only.

any other way using diagnostic tool kit find the response time. 

0 Kudos
Message 7 of 8
(2,350 Views)

See http://zone.ni.com/reference/en-XX/help/372140J-01/adcs/gettimestampvi/

Assuming you are using ISO TP (which the send and receive commands you mention appear to), the get time stamp vi should help you.  The Send Command is a SF, as is the receive command.

Also note that you don't need to use Diagnostic Service.vi for this.  You can use UDS Diagnostic Session Control instead (http://zone.ni.com/reference/en-XX/help/372140J-01/adcs/udsdiagnosticsessioncontrolvi/).  If you want to stay in extended diagnostic mode, you will probably also need to periodically send a tester present message (http://zone.ni.com/reference/en-XX/help/372140J-01/adcs/udstesterpresentvi/).

0 Kudos
Message 8 of 8
(2,317 Views)