LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform streaming to disk causing intermittent GUI freeze

Hello, I have a VI (see attached) that I am using to acquire and write data to disk. The problem is, when I have one of the record modes activated, the numbers displayed on screen will update normally, pause for one second, then continue. This repeats as long as the logging is taking place. This is REALLY annoying and shouldn't be happening at all.

What might be causing this? It only happens when I am streaming to disk. Does it have to do with the fact that I am writing (many) waveforms to a file?

Also, I am using the low-level waveform file VIs (open / write / close), and the output files are massive (about 3 MB per second of recording, when acquiring at 10kS / s). Is there a way to cut this down, a
nd still have a valid timestamp to plot against?

Any help would be GREATLY appreciated! Thanks!
0 Kudos
Message 1 of 2
(2,577 Views)
Hi tritone.
I have had that problem saving data from pxi high speed digitizer. It looks like the hard drive takes some time to write the data buffer. ( in my case, gui freezes about 100 ms every second). The solution was a consumer/producer design, as you can see in this NI link.
http://zone.ni.com/devzone/conceptd.nsf/webmain/C54BADADD8BBDE4286256C5200533B80?opendocument

Hope it solves your problem

Alipio
---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
0 Kudos
Message 2 of 2
(2,577 Views)