09-11-2007 07:16 AM
09-11-2007 07:37 AM
09-11-2007 09:49 AM
ok,
I have created a program to do it, I am using write to binary file, the file size is always around 14mb. I have a problem that when I wish to do this on a continuous streaming then sometimes it is takin well over a second to append to the file. if im storing everything in a queue, then surely I am going to have some major backlog issues here?
thanks
09-11-2007 09:55 AM
"if im storing everything in a queue, then surely I am going to have some major backlog issues here?"
Yep! That is why the file I/O should not be in the same loop as the DAQ functions. that loop should be lean and mean. The file writting loop should keep reading whatever it finds in the queue as they come in. Similarly the DAQ loop should do repeated reads of teh backlog and queue up the readings to the other loops to handle.
Rather than repeat myself, please review this thread for suggestions.
Ben