Shankar, I would propose that you totally remove the File I/O from the DAQ loop. You should acquire the data in the DAQ loop and use a Queue to pass the data to another loop � who�s only job is to push the data into a file. (don�t use global variables)
The file loop you be �asleep� by wiring the Queue wait timeout to �1. It will wake up when the DAQ sends a message to it. Queues can handle any data format. This removes any performance issues that current and future additions to the code will likely add. Jack Hamilton Hamilton Design [EMAIL PROTECTED] www.Labuseful.com 714-839-6375 Office
