From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CmtNewTSQ - Circular Buffer

Hello,

 

I wondered if someone could confirm that using OPT_TSQ_AUTO_FLUSH_EXACT option in CmtNewTSQ would emulate a circular buffer.

0 Kudos
Message 1 of 2
(2,958 Views)

According to NI documentation, this option would:

"Configures the thread safe queue to throw out exactly the amount of old data that it needs to in order to fit new data when a thread attempts to write to the queue when the queue is full. The new data is written into the newly freed space in the queue. If another thread is reading from the queue when this occurs, the write function waits until the reader is done its operation"

 

 

0 Kudos
Message 2 of 2
(2,943 Views)