LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Variable TSQ Threshold?

As described in my previous post today, I need to receive packets of varying sizes from the Com port, and pass them via TSQ to a function for processing.
 
There does not seem to be any way to easily change the threshold value of a TSQ. 
 
Is there some technique for using a TSQ to route variable length data packets?
 
Or does one have to uninstall the TSQ function and reinstall it with a new threshold value each time the threshold needs to change?
0 Kudos
Message 1 of 2
(3,011 Views)

Hello,

I think you can use the function "CmtGetTSQAttribute (..., ATTR_TSQ_ITEMS_IN_QUEUE, ...)" inside your TSQ callback, and process data only when the items in queue comply to the lenght required.

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