LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

column names/headers for arrays in Excel

Solved!
Go to solution

I have 10 arrays of numbers which are saved to 10 columns in Excel file using "Write To Measurement File".

Now i want to give names to the columns means Headers. How can i?

Yes i tried "Set Dynamic Data Attributes" but with this i can add only 1 column name at a time. so i have to use 10 blocks for 10 columns? This is not a good idea.

so help me to give names for all 10 columns in easy way.

0 Kudos
Message 1 of 4
(4,369 Views)
Solution
Accepted by sacsk123

sacsk123

 

You can call the "Write to Spreadsheet File.vi" and write an array of strings corresponding to your desired headers.

 

Once you have created your headers, you can then append your measurement data to the file.

 

I hope this helps,

 

Ingram

Ingram | CLA
0 Kudos
Message 2 of 4
(4,325 Views)
this works but i like the "write to measurement" and directly write into excel file. ok thats fine.
 
now i have few arrays of elements coming out of for loop. i want to save them in single ROW in excel with headers. How can i do this?
means i get array of 4 numbers.save them to 1 ROW but with column names.
 

 
 
0 Kudos
Message 3 of 4
(4,290 Views)
Solution
Accepted by sacsk123

Hi, 

did you try this method? If not, try it as in an attached image.

Best Regards,
Dhans 😉
Kudos are welcome 😉
Aspirant Labview Programmer (Labview 14) 😉
0 Kudos
Message 4 of 4
(4,287 Views)