LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the easiest way to save delimited text (data) hourly or daily that is streaming from a simple daq process?

Process consists of 11 analog input channels running continuously at 10 samples\sec.(PCI 6024E). I am using the "datalogger to spreadsheet" VI modified for my needs. My boss wants the files saved hourly and several approaches I've tried don't work. I've had BasicsI and II but I'am still struggling to learn. TIA for any help or examples
0 Kudos
Message 1 of 2
(2,391 Views)
The approach will generally depend on whether you want to store all the data every hour, or just a a sample or two at the end of each hour. 10 samples a second over the course of an hour is probably about 144 Kb which is an awful lot to have sitting in RAM. You would really want to to a stream to disk app in this case. There are plenty of examples of how to do this that ship with LabVIEW. If you just want to save a few samples to disk every hour, than your real problem is keeping track of the time. The easiest way would probably be to just save at the proper loop iteration multiple. If your loop goes around 10 times a second, then you can save when the iteration is a multiple of 36000. If you wanted to avoid a role over problem with the iteration number every 59652
hours, you could choose to use the Get Date/Time in Seconds Vi to keep track of the time instead. Basically inside your loop, you will have a case structure such that the data will save at the proper time.
0 Kudos
Message 2 of 2
(2,391 Views)