LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pause in Timed Loop

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

 

Download All
0 Kudos
Message 1 of 4
(2,596 Views)

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?

0 Kudos
Message 2 of 4
(2,577 Views)

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.

 

 

0 Kudos
Message 3 of 4
(2,520 Views)

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

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 4
(2,487 Views)