LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write to excel

Hi!

 

I need to modify the Vi in attachment (taken from http://zone.ni.com/devzone/cda/epd/p/id/4523) in order to write  "Array2", "Array3" and "Array" in different excel sheets of the same excel file.  "Array" is composed by strings and the other arrays are numeric.

 

May you please help me?

 

0 Kudos
Message 1 of 6
(3,343 Views)

Hi fgracia,

 

Well, I'm very new to ActiveX so you take your project in your hands listening to me! That said, I've been dragged by the scruff of my neck to get some ActiveX Excel stuff working very quickly so I've been forced onto a steep learning curve. Don't know if the attachments are any good to you but you might be able to modify them. The first is my Excel writer, only writes to Worksheet1 but some looping and data manipulation might get it doing what you want. Your cell converter VI is very poor and fails early. I attach my version, which should work ad infinitum (although Excel columns only go as far as XFD, as I understand them). That said, if you see my main attachment, a conversion node is available. Hope this helps.

 

GGT

Download All
Message 2 of 6
(3,327 Views)

Hi GGT.  Thnak you very much, but I forgot to say that I have Labview 8.0, then I can not see your files.  Would it be possible to post an image of the code?

 

Thank you very much!

Message Edited by fgarcia on 02-22-2010 07:14 PM
0 Kudos
Message 3 of 6
(3,312 Views)
here you go...
Regards
Guru (CLA)
Download All
Message 4 of 6
(3,300 Views)

and as a quick solution you have to repeat that nested for loop 3 times to write the array arrray2 and array 3 values.

 

Dont forget to point the reference to new worksheet between these for loops so that you write different arrays in defferent sheets. (actually since the data type of the 2 arrays are same i.e 2D of double, 2 sets of nested for loops will serve for you.)

Regards
Guru (CLA)
Message 5 of 6
(3,291 Views)

Thank you!

 

I will try it and let you know.

0 Kudos
Message 6 of 6
(3,275 Views)