NI-Embedded CAN for RIO API Reference

Receive Queue Size

Receive Queue Size

Data Type Direction Required? Default
Read No 5

Property Class

Embedded CAN Interface

Short Name

Receive Queue Size

Description

Note Note  Receive Queue Size must be 5 or above.

Specifies the number of frames that can be stored in the receive queue.

The receive queue stores data received from the network and not yet obtained using the CAN Read VI.

If Receive Queue Size is greater than 5, the receive interrupt is enabled and a receive queue is allocated in RAM. When a frame is received, it is pushed into the receive queue. The timestamp when it was moved also is stored and is returned when you use the CAN Read VI. If Receive Queue Size is 5, the receive interrupt is disabled, and a hardware receive queue is used. A frame is retrieved from the hardware receive queue each time you use the CAN Read VI.

The execution time to read this property is sufficient for use in a high-priority loop in the LabVIEW Real-Time (RT) Module.

Log in to get a better experience