LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XNET queue size

Hello!

I need to increase queue size for a signal waveform. And if the queue overload, I want to clear it.

First I tryed it in a big app, but without success. I see that set Queue size changes size to 1 (I asked 100). And flush queue doesn't clear the queue.

 

 

CANq.PNG

 

 

Then I repeate this in a simple example, but with the same result: the queue size is changed from 40 to 1 even if I ask 1000.

 

CANq2.PNG

 

So, my questions are:

How to increase queue size? I need ~2 sec.
How to clear the queue if it overloaded? I want to clear the error after unsuccessful reading.

 

0 Kudos
Message 1 of 3
(1,188 Views)

I am having the same problem. Signal Waveform Queue Size cannot be changed. The only thing that seems to change the queue size is the Resample Rate which is in line with what the Queue Size property node docs

 

https://www.ni.com/docs/en-US/bundle/ni-xnet-api-ref/page/ni-xnet-api-ref/propertysessionqueuesize.h...

 

0 Kudos
Message 2 of 3
(516 Views)

I think that the answer is going to be to read the session more frequently. Personally I am reading the Number of Values Pending property node and piping that in Number to Read of XNET Signal Read.

0 Kudos
Message 3 of 3
(496 Views)