LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XNET & CAN - Control when Frame is being TX

We have some code which takes in a CAN DBC, sets up the CANBUS (Termination Set, etc...) as well as the TX rate.

 

We have another bit of code which generates the 64-bit contents of the message, again at 100hz.

 

However, we have a problem with that those two 100Hz processes are ever so slightly out of sync sometimes resulting in the occasional skipped message (I.e. you can see that a step has been skipped) or retransmitted message (I.e. contents the same).

 

Is there a better way to synchronise the TX? Can we take over that with the XNET/CAN block so the message generation loop controls when the frame is TX onto the CANBUS?

 

Thanks.

0 Kudos
Message 1 of 2
(258 Views)

See Hardware Time Based Control of CAN Frame Transmit Time with NI-XNET

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 2
(194 Views)