Use a Control Label as Spreadsheet Header in LabVIEW

Updated Mar 23, 2026

Reported In

Software

  • LabVIEW

Issue Details

  • Is it possible to use the label of a LabVIEW Control as a header in a spreadsheet?
  • Using LabVIEW, how can I create headers for columns in my spreadsheet?

Solution

The labels for each Control can be use to create headers for spreadsheets.

In order to do this, please follow the steps below:

  1. Right-click the Control that you wish to use to create a header, and select Create>>Property Node>>Label>>Text.
explorer_KeBDsEJ89l.png
  1. Once your Property Node has been created, wire the output to a Build Array function.
  2. Then, wire the output of the Build Array function to the 1D data input of the Write Delimited Spreadsheet VI.
explorer_zVgvLfb0dW.png
  1. Now that your spreadsheet has headers, you can add the data in your spreadsheet. Below is an example where ten numbers are randomly created and stored in the Test1.txt file under the header Label-1.
explorer_pbxBax0wpJ.png
explorer_gkk9FqtnrA.png
 

Additional Information

The code shown above can be implemented using multiple headers. Below is an example using two headers for ten numbers randomly created and stored in the Test2.txt file under two headers.

chrome_dyo5a0CJR7.png
explorer_5t1KsqsfJJ.png