01-14-2016 07:08 AM
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
01-19-2016 04:06 AM
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!