LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

resizing array for excel data logging

 

 

hello,

Im working on a data logging application for a fuel cell.

Id like to to grab data 30 seconds and then write it to an excel file.

I want each set of data to be in its own column. 

the data should be about 10x1 although in the example its 2x1

After grabbing it and logging it to excel, i want to clear the array.

Then i want to start again.

this way i am not continusously writing ot the disk which would slow it down.

 

I would like each new set of data to get appended to the existing data in the format.

time 1   data1-1   data 2-1

time2    data1-2   data 2-2

time3    data1-3   data2-3

etc...

 

this should be simple

But I cant figure out how to make it append to the end of the array

I also tried "build array" along with "insert into array"

 

Im getting, for example, the format

 

time 1   data1-1   data 2-1 time2    data1-2   data 2-2

time3    data1-3   data2-3

 

 

here is my file

http://www.engr.uconn.edu/~jmacione/pete_timer_simp.vi

0 Kudos
Message 1 of 2
(2,566 Views)

The only way I can think of to add new columns easily is to use the ActiveX interface to Excel to add the data. Check the examples that ship with LV.

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 2
(2,548 Views)