Example Code

How to Filter Data for a Particular Device ID with NI-CAN Frame API

Code and Documents

Attachment

Given that certain NI-CAN devices, such as the USB-8473, do not suppor CAN Objects witht the NI-CAN API, it is not possible to filter the data read in the bus for one particular device at the hardware/driver level. This example shows how you can, in software, filter the data read fom the bus to display only frames from one particular device ID. The VI is meant to be used with the CAN Receive.vi example Found in the Example Finder under Harware Input and Output » CAN » NI-CAN » Frame API » Basic.

CAN Data Filter.png

Eli S.
National Instruments
Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors