LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Recording Data Sets at Timed Intervals

I am very new to Labview, and have been tasked with updating an older Labview file to record 10 seconds worth of data at set time intervals, say 1 hour. If possible, I would like to be able to save each recorded data set into its own separate text file. Any guidance to go about doing this would be greatly appreciated. I have attached the file in question below. Thanks in advance! 

0 Kudos
Message 1 of 3
(2,714 Views)

Your 10 seconds worth of data will come from your number of samples divided by your sample rate.

 

You can use the "elapsed time" VI to see if 1 hour has elapsed or not. If it has, use a case structure with "write delimited spreadsheet" to save your data to a file, and reset the elapsed time VI.

Message 2 of 3
(2,710 Views)

Hi jenso,

 

I am very new to Labview,

Then you surely noticed this "Learning LabVIEW" section in the header of this LabVIEW board!?

 

and have been tasked with updating an older Labview file

So you got the task to learn LabVIEW? (Do you get paid for this?)

 

to record 10 seconds worth of data at set time intervals, say 1 hour

So you need to have a way to know your time interval (of 1h) has elapsed (there's a function called ElapsedTime).

Then you need to set your DAQAssistent to read data "worth 10s" (or maybe 10 times worth of 1s?).

And finally you need to save this data into a file. (Pick an appropriate function from the file functions palette.)

 

If possible, I would like to be able to save each recorded data set into its own separate text file.

You need to learn how to create a new file name after each time interval. (You also should define how that filename should be formatted, I usually like a format of "YYMMDD-HHMMSS-project-title"…)

 

So you got several hints and should start to learn LabVIEW and look things up. But that's your task as you wrote! 😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 3
(2,707 Views)