12-10-2011 01:21 PM
Im working on a datalogging app that looks at the signal from a load cell for 10s, calulates the max, min, and average values of the data acquired during the 10s then writes this data to a spreadsheet file along with the start time, and stop time. I also want to write data immediatly if two succesive data points are greater than 5% of eachother. Im mostly having trouble figuring out how to write the header to the spreadsheet. I want the end result to be like this.
this is what im getting
Solved! Go to Solution.
12-10-2011 01:51 PM - edited 12-10-2011 01:53 PM
I modified my VI, now its formatted correctly but the data gets rounded to whole numbers when i convert it into a string. Is there a way around this?
12-10-2011 03:07 PM
Use Number to fractional string instead of number to decimal string.
12-10-2011 06:41 PM
@.:aCe:. wrote:
Use Number to fractional string instead of number to decimal string.
thanks. Everything looks fine now. One more thing, how can i modify my program to write the data to the file as its availabe instead of writing the array all at once?
12-10-2011 06:56 PM
I think its probably better the way you are doing it right now as you are only accessing the disk just once. Storing it in array would be typically be RAM, so this would be faster.
But if writing data as it is available is your requirement, try the example (C:\Program Files\National Instruments\LabVIEW 2011\examples\file\smplfile.llb\Write to Text File.vi) which ships with LabVIEW.
12-11-2011 09:18 AM
@.:aCe:. wrote:
I think its probably better the way you are doing it right now as you are only accessing the disk just once. Storing it in array would be typically be RAM, so this would be faster.
But if writing data as it is available is your requirement, try the example (C:\Program Files\National Instruments\LabVIEW 2011\examples\file\smplfile.llb\Write to Text File.vi) which ships with LabVIEW.
That makes sense, ill just leave it like it is.