11-21-2012 05:59 PM
I'm trying to run a cRIO -9012 with a 9205 Module in it. I'm just trying to get it to collect correctly before I build a real project. It seems to collect voltage data fine, but it has a... pause? It stops collecting every 8 seconds for 1 second and then returns to collect data. Is this a buffer problem or...? I'm trying to collect at 10Hz (100msec Period). Here is the program and a screen shot of it if you just want to see it.
Any and all help will be appreciated,
Sesmi
11-21-2012 07:11 PM
How did you determine the acquisition stops every 8 seconds and are you sure the problem is with the cRIO and not the write to file? Is the drive you are writing to mapped or local?
12-18-2012 01:05 PM
I can count it on the screen on the graph as it runs and then I can determine the exact time it pauses when I look at the data file that it writes to. Could the write function being slowing it down that much? It doesn't do this on our regular DAQ chassis. The data is being stored on a flashdrive plugged into the cRIO.
12-19-2012 06:56 AM
It could be a file access problem.
8 secs of roughly 50 bytes/sec should be 4kb, a common block size of a disk, it could be that you need to find a new block to write on every 8 secs from a closed file.
What you can try is using the file ref from the 1st read and use a String to spreadsheet array and Write to text file with the file ref inside the loop. Put ref in a shift register and close file afterwards.
/Y