05-16-2018 02:51 PM
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!
05-16-2018 02:57 PM
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.
05-16-2018 03:01 PM
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! 😄