When I do data collection and data storage, I use producer-consumer architecture for data collection and storage. Once the program runs, there will be more and more elements in the queue. I guess this is caused by TDMS writing speed is too slow and data collection speed is too fast. Is there a good way to solve this problem, please help me!