03-19-2018 03:35 PM
Hi
I have an application with NI-CAN and I am using the card NI USB-8473
I want to filter incoming messages to read only certain ID extended (29 bits)
my required id is: 18DA8AF9 or 38DA8AF9
some of the other ID I receive are 38FF058A and 3CFF6FA5
I already saw the example about FilterModes but it is really not clear to me what values I should introduce in the comparator and Mask values
I only want to filter 1 ID so I guess the mode I need to use is extended single
Any help is appreciated
03-20-2018 09:22 AM
Check out this post here as it references a built in shipping example to help calculate the correct mask values.
Check out this post for another example on how to accept a single frame.
03-21-2018 01:15 PM
I am checking it today, thanks
03-21-2018 05:15 PM
I downloaded the example for single frame, it gave me some values to use as input for the comparator and mask values and, it worked!
but, I still dont understand how those values are calculated, for now I will leave thema s constants since my required ID is not expected to change.
Thanks