Hello,
In order to use a queue to pass data between an Enqueue loop (producing data) and a Dequeue loop (consuming data), you will need to control the speed of the 2 processes. If both loops run at the same speed, the queue does not fill up.
When the Enqueue loop runs fast and the Dequeue loop runs slow, the queue quickly fills up and the Enqueue loop must wait for the Dequeue loop to remove elements.
If the Enqueue loop runs slow and the Dequeue loop runs fast, the queue is quickly emptied and the Dequeue loop must wait for the Enqueue loop to insert elements.
Concerning your question on file I/O performance, you will find below an application note dealing with this subject:
* Optimizing File I/O in LabVIEW and LabVIEW RT
http://zone.ni.com/devzone/con
ceptd.nsf/webmain/7134EFC95243E39286256AE2004F9386
and an example of programming:
* Fast File Writing in LabVIEW Real-Time
http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3E19D56A4E034080020E74861&p_node=174823&p_source=external
Sincerely.
Matthieu Gourssies