LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Header + data to spreadsheet file

Solved!
Go to solution

Hi All,

 

I am trying to write header + data as shown in the image

 

It works fine, but the problem is at the start of each array it is creating one tab as shown in the "output file.jpg"

 

could you tell what mistake i have done

 

Thanks

 

 

 

 

Download All
0 Kudos
Message 1 of 8
(5,593 Views)
Solution
Accepted by topic author appala

Hi Appala,

In write spreadsheet file.vi converts array input to string by using Array To Spreadsheet String.vi default it convert array to string with Tab delimiter so you getting tab in spreadsheet file. I am attaching one jpg file that will work.

Regards,
Santhosh M
Message 2 of 8
(5,572 Views)

Hi Santhosh

 

It worked

 

Thanks

Message Edited by appala on 03-25-2009 03:19 AM
0 Kudos
Message 3 of 8
(5,553 Views)

Hi,

I have a similar problem.

I have a header generating sub vi and then this and data are to be written to a spreadsheet.

If I only write the header it works.  If I allow the vi to run and get data, I get no header.

Also all data is entered in the first cell, and the file is not a excel file.

I am using a comma as a delimiter.

I am not that experienced in Labview yet, but I don't see a problem with this.

 

 time date string.pngcreate header.jpg  main vi.jpg

 

0 Kudos
Message 4 of 8
(5,214 Views)

It would be best if you started a new thread and posted your actual VI.  It is hard to debug a shrunken image of your block diagram.  And the assortment of broken wires don't tell us anything either.

 

Write to Spreadsheet file doesn not create an Excel File.  It creates a text file that is delimited in a way that a spreadsheet program like Excel can open or import.

 

If all the data is being entered into a single file, you probably do not have the import process in Excel looking at the correct delimiter.  I find with Excel you have to explicitly tell it to use a comman when you import the data.

0 Kudos
Message 5 of 8
(5,186 Views)

Your replay tells me what I need to know. 

No where did I find that the file is not saved as an Excel type file.

If I open Excel and then the file it's a bit differenct than if I open the file using Excel.

Sorry for the bad pics, but I don't have a way to make a jpeg.

0 Kudos
Message 6 of 8
(5,157 Views)

Hi MrDoc

 

Could you post the vi's

 

so that we can understand your problem distinctly

 

Regards

0 Kudos
Message 7 of 8
(5,144 Views)

MrDoc wrote:

Your replay tells me what I need to know. 

No where did I find that the file is not saved as an Excel type file.

If I open Excel and then the file it's a bit differenct than if I open the file using Excel.

Sorry for the bad pics, but I don't have a way to make a jpeg.


Did you see some place that said that it DID save it as an Excel file?

 

To make a jpeg, put your screenshots into Microsoft Paint.  Then you can Save As to a JPEG.  Then attach that file to your message.

0 Kudos
Message 8 of 8
(5,120 Views)