LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XNET Read (CAN Frame Input Queued)

Dear LabVIEWers,

 

I was wondering if anyone has ever confronted the following issue and possibly if there is a solution:

 

I am using XNET Read (CAN Frame Input Queued) function to read some CAN frames. I am perfectly able to set the "Number to read" property and it reacts well. As soon as I specify a parameter for Timeout property, it does not read any frames anymore and directly pops up a Timeout error after x(specified) seconds.

 

While I was trying the same thing using XNET Read (CAN Frame Input Stream), I did not face such a problem. 

 

Is there some one who experienced this before and know a solution ?

 

Ps: My Hardware is NI-PXI 8512 HS/FD

 

Regards,

Ali

0 Kudos
Message 1 of 2
(3,300 Views)

Hi Ali, 

 

From what you've mentioned it seems its a fairly similar issue to the forum linked below. Attached in the reply there is an example VI to show you a little more how the buffers can be used in XNET which may be worth having a look through.  You can set the buffer size and look at the unused spaces in both the read and write queue.

 

XNET CAN frame queue overrun kills Read VI: http://forums.ni.com/t5/Automotive-and-Embedded-Networks/XNET-CAN-frame-queue-overrun-kills-Read-VI/...

 

It might be helpful to have some example code for this to look further into the issue, but let me know how you get on! 

0 Kudos
Message 2 of 2
(3,193 Views)