01-15-2024 09:44 AM - edited 01-15-2024 09:45 AM
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.
01-16-2024 08:38 PM
See Hardware Time Based Control of CAN Frame Transmit Time with NI-XNET