ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to spreadsheet headers?

Is it possible to put headers above each column in write to spreadsheet? Or at least I need the data to start one line further down...

 

Any ideas?

0 Kudos
Message 1 of 13
(5,781 Views)

Like this

 

20727iA6E2AF8CC3B601B1

Tim
GHSP
0 Kudos
Message 2 of 13
(5,769 Views)

Sorry.... that's no good, i need my numbers to stay as doubles unfortunately.

0 Kudos
Message 3 of 13
(5,760 Views)

Are you trying to write to a spreadsheet file in tab delimited format or dirrectly to a spreadsheet application like excel.

If you are writing to a tdf or cdf then the above will work since all are essentially strings (ascii file), you can change the second %s to %.5f (change the 5 to what ever precision you need in the final file).

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 13
(5,752 Views)

Pazmush,

 

The spreadsheet will be text or strings.  That is the way the files work.  The code aeastet posted uses doubles - look at the wire color.  The example data all had integer values but was still a double representation.  Look at the help files for the Array to Spreadsheet String function for information about formatting to save as much precision as you need.

 

Lynn

 

 

0 Kudos
Message 5 of 13
(5,751 Views)

20733i8DFB436258260E90Slight modification to allow for precision to be maintained on doubles.  You can also save in minary format or write to excel using a toolkit or activeX but this is more work.

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 6 of 13
(5,741 Views)

ive got numbers that are like 1.34E-14, how do I go about encorporating them? So far i keep getting zeros

0 Kudos
Message 7 of 13
(5,728 Views)

Use the Number to Exponential String function.  It is in the String >> String/Number Conversion palette.

 

Lynn

0 Kudos
Message 8 of 13
(5,723 Views)

20741iD339697454C7A049

0 Kudos
Message 9 of 13
(5,710 Views)

That is what I did

0 Kudos
Message 10 of 13
(5,709 Views)