Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Flushing Message queue

Is there a way to flush the message qeue stored in the NI CAn bus card? of
for that matter how can I reset the NI CAN card as is done on a Power Off
power On? I am using LabWindows CVI.

Thanks
0 Kudos
Message 1 of 6
(5,290 Views)
Hi,

There isn't any API call to flush the CAN queue.

You can use ncReset to put the CAN board on its power on state. The function actually reloads the board's firmware, so it resets the board just as if it was powered on.

Check the following knowledge base article:
Using the "ncReset" function with NI-CAN

DiegoF
National Instruemnts
0 Kudos
Message 2 of 6
(5,286 Views)

HI,

The  knowledge base article is not available !!!

Smiley Surprised

0 Kudos
Message 3 of 6
(5,027 Views)

The KB is no longer available , because we do not recommend to use the ncreset anymore. Instead use the ncaction with reset option to flush the buffers.

For a power on and off, you need to reset the board from MAX. (CTRL+ SHIFT and right mouse click to the board).

DirkW

0 Kudos
Message 4 of 6
(5,015 Views)
Is there a way to do this with the Channel API and the associated VI's?  If not, can the ncaction be used along with the Channel VI's?  I need a way of shutting down any tasks which are running.
0 Kudos
Message 5 of 6
(4,996 Views)

Hi,

unfortunately there is no reset option available for the channel api. But normaly the task clear function should clear the buffer too.

DirkW

0 Kudos
Message 6 of 6
(4,949 Views)