0
Answered

Generic CAN message reception flag

Steven Park 4 years ago in IQANdesign updated by Gustav Widén (System support) 4 years ago 5

Hi,

I am using Generic CAN message channel to process data from 3rd party CAN device. The device periodically sends the same message and I am wondering if there's a way to differentiate the message being processed in the current cycle from the message received from the previous cycle. Some kind of a reception flag would be really helpful

Used Event Counter channel to generic frame in channel to increase counter for reception. So problem solved

+1

The GFIN channel value is True in the cycles when it has a new value. 


Worth noting is that if the transmit rate of the sending device is higher than the cycle time, counting the cycles when the GFIN is True will not give a total count for all frames that were sent on the bus, only those picked up and used in the application.  

Just out of curiosity, If the transmit rate of the sending device is higher than the cycle time of the receiving device, does the message get discarded not buffered?

Yes, the value that is used by the GFIN is the last incoming CAN frame with a matching ID. 

As the CAN messages are intended for machine control, it is important to not buffer up old messages.