Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there any Frame/Channel API command to clear Rx CAN queue ?

Hi everybody,

 

Is there any NI-CAN CVI command to clear CAN Rx queue/buffer ? .... Something like FlushInQ in CVI ?

 

Petko G.

0 Kudos
Message 1 of 3
(8,024 Views)

Hi Petko,

 

I didn't find any command which would work like "flush queue", but I believe you should be able to clean the entry queue by reading number of frames available in the read queue, and then calling "Read Net Multiple.vi". All the read data you can just ignore, but I bett you will empty entry queue.

 

 

regards,

Stefo

Certified-LabVIEW-Developer_rgb.jpg

0 Kudos
Message 2 of 3
(7,984 Views)

I have used this technique in some applications (Frame API) and can therefore confirm that it will empty the entry queue.

 

18271i54FE4358525F9000

Message 3 of 3
(7,967 Views)