LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

excel headers

I am continously acquiring data from transducers nad tthermocouples using the while loop and writing data to exel sheet. My problem is that i have not been able to automatically write headers of my choice to the excel sheet thereby categorizing the data from each transducer and thermocouple. How can we give header from the while loop or there is any other way ?
0 Kudos
Message 1 of 16
(3,704 Views)
The easiest way to do this is to build a two dimensional array of strings. In the first row you can place your column headers. They you can use the array to spreadsheet string function. This will allow you to specify a delimiter, default is tab. They simply use the write characters to file function. You can specify a .xls extension for the file name. This will build your columns with headers on the top and everything will be in different cells. Hope this helps.
BJD1613

Lead Test Tools Development Engineer

Philips Respironics

Certified LV Architect / Instructor
0 Kudos
Message 2 of 16
(3,704 Views)

BJD1613,

Would it be possible if you could show me how to do this in an image file? (windows screenshot).

I am using a fielpoint device but this wouldn't matter right?

 

Kind regards,

 

0 Kudos
Message 3 of 16
(3,187 Views)

Hi faisalayaz,

You can use the code attached below to write column headers before start of you data logging. Say in your "Initialize" state.

Let me know if this solves your problem.

 

Best Of luck!!!!Smiley Happy

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 4 of 16
(3,172 Views)

Hi Gaurav

 

Your code gives error after invoke node executed.

 

 

Regards,

Hari

 

0 Kudos
Message 5 of 16
(3,160 Views)

Hi hari,

It runs without error on my PC. Please check path/ name of the excel sheet at your side

 

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 6 of 16
(3,157 Views)

Hey Gaurav

 

It is working fine.

now i like to add a measure values.

graph from that measured values.

 

can we create grneral test report like below

 

test name:                                                                                   date:

test number:                                                                                time:

test operator:

 

sno      val1                val2                   val3

 

thank you

 

 

 

 

 

0 Kudos
Message 7 of 16
(3,149 Views)

For that you will have to use template and NI_report generation toolkit.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 8 of 16
(3,147 Views)

Hi hari,

Look at the attached image.

An example of how to write data in template.

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 9 of 16
(3,139 Views)

While you have gotten an immediate response to your question I will mention that it is a good idea for future questions to start a new thread rather than ask the original poster or respondents to a six year old thread.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 10 of 16
(3,132 Views)