LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CmtGetTSQReadPtr () usage

I'd like to know using CmtGetTSQReadPtr() to read data from a TSQ, after reading, if it will remove the data items from the TSQ at the same time? Because I know when using the CmtReadTSQData() and specify  the OPT_TSQ_READ_PEEK parameter, it will leave the data in the queue.

 

 

David

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

Hi David,

 

After calling CmtGetTSQReadPtr, you must also call CmtReleaseTSQReadPtr when you are done with the read pointer. When you call CmtReleaseTSQReadPtr, you must pass a value for the "Items Read" parameter. If you pass 0 for that parameter, all of the data remains in the queue. Based on the documentation, I believe that passing a non-zero value will cause that number of items to be removed from the queue.

 

 

I hope this helps.

 

Jeff

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