01-22-2015 06:14 PM
I am new to Labview and am conducting an experiment where I will be collecting data from various sensors. I have figured out how to connect all the sensors in the program and have the all in a while loop so that I can eventually take data at a regular consistency. I have set it up to report all the data into an excel file but was wondering if there was a way to report the time of each data 'grab' (i.e. the time each row of data was taken)?
Thanks in advance!
Solved! Go to Solution.
01-22-2015 06:34 PM - edited 01-22-2015 06:34 PM
Here is a vi I wrote to do exactly that.
Put all your measurements into a single dimension array and feed the array to this VI.
This VI will put a timestamp in the first column that is in the right format for Excel to use.
Open the vi and look at it as you will have to make a simple adjustment if you are not in the Pacific Time Zone.
01-22-2015 07:01 PM
01-23-2015 04:45 PM
How exactly would I get total elapsed time from waveform though? I understand how to get dt but is the only way to get total to keep adding up those values?
01-23-2015 04:56 PM
01-23-2015 05:00 PM
Waveform pallet has a get timestamp array fn. Array min max that and a simple subtract gets duration.
02-04-2015 05:47 PM
How would I use a for loop to get either relative or absolute time? I will need both.
02-04-2015 06:24 PM