How To Set a CAN Interface on Listen Only Mode?

Updated May 17, 2023

Environment

Hardware

  • PXI CAN Interface Module

Software

  • Measurement & Automation Explorer (MAX)

Driver

  • NI-XNET
  • NI-CAN

I have a CAN Interface and I would like to set it on a Listen Only mode, how can I do it?

Using NI-XNET
  • You can configure the Listen Only Mode from the Interface: CAN: Listen Only? property in the XNET Session class.
  • You can also set the interface to Listen Mode from XNET Bus Monitor 

Using NI-CAN
  • You can configure the Listen Only mode from NI MAX: 
On the CAN interface, click Bus Monitor.

Check the Listen Only flag.

Additional Information

  • When the interface is in Listen Only mode, the interface can neither transmit CAN frames or not acknowledge a received CAN frame (send ACK bit).
  • Listen Only mode is useful for debugging purposes when you want to monitor the bus traffic, however, you do not want to interfere with the communication or acknowledge the CAN frame