LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview to excel

Solved!
Go to solution

Hello,t I want an automatic generation of an excel file every time I run my program to record a digital values , what I want is  to impose to the function writing in a measurment file the text of the column headers, here is what I get for now.

thank you in advance 🙂

Download All
0 Kudos
Message 1 of 15
(4,311 Views)

Hi ramlus,

 

two solutions:

1. Don't use the expressVI and use WriteToSpreadsheetFile. Use two calls to write the header and the data…

2. When using DDT you can set a name for each signal. This name/label will be used in the Write-ExpressVI…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 15
(4,296 Views)

Hi, thank you for your answer 🙂

please do you have any examples  to follow, i prefer the second sollution 🙂

 

0 Kudos
Message 3 of 15
(4,276 Views)

Hi Ramlus,

 

read the LabVIEW help

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 15
(4,273 Views)

I try it for one signal and it works shoud I repeat it for every signal ?? could I put all the signals on one DDT ?? 

0 Kudos
Message 5 of 15
(4,267 Views)

Hi Ramlus,

 

yes.

And yes…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 15
(4,263 Views)

thank you, but how to define a name for each signal on the same DDT ??? 

0 Kudos
Message 7 of 15
(4,259 Views)

Hi ramlus,

 

you didn't asked for "How?", only "Can I?"… 😄

 

Basic LabVIEW knowledge, taught in free online courses and example VIs:

- When you want to repeat a task you should use a loop.

- You can "bundle" DDT signals using the JoinSignal ExpressVI…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 8 of 15
(4,252 Views)

lol ok ,  in fact i'm just asking how to put a name for each signal in the same DDT. because the signal index entry and the name exists for only one signal 😕 

0 Kudos
Message 9 of 15
(4,233 Views)
Solution
Accepted by CrisSTine01

Hi Ramlus,

 

wire the index and name for each signal in your DDT wire - a loop with an autoindexing name array would fit here nicely…

 

You should know how many signals there are in your DDT as you created that on your own!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 10 of 15
(4,228 Views)