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: 

Read value from excel

Solved!
Go to solution

I'm using LabVIEW 2015 without Report Generation Toolkit.

And I wanna read value from excel.

I got  a useful VI for that.

But It seems it had a limit on the number of columns.

I wanna read about 40 columns but it read only 26 columns.

Can you show me what property I should change?

0 Kudos
Message 1 of 5
(1,748 Views)
Solution
Accepted by topic author kimtae

Hi Kim,

 


@kimtae wrote:

I wanna read about 40 columns but it read only 26 columns.


Because of the way the cell "range" is created…

Compare the column labels in Excel with the column labels/ranges created in that VI!

 

Suggestion: You need to refine the way how those ranges are created…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(1,734 Views)

Hello, GerdW.

Thank you for write a comment about this.

I appreciate about it.



Because of the way the cell "range" is created…

Compare the column labels in Excel with the column labels/ranges created in that VI!


Where I should compare is these red circles?

I try changing the 'column' constant to 100 but it didn't work. 

The number of columns was limited to 26.

Or did you mean something else?

 

 

kimtae_0-1635757461330.png

 

0 Kudos
Message 3 of 5
(1,730 Views)
Solution
Accepted by topic author kimtae

There are 26 letters in the Latin alphabet. After column "Z" Excel expects column "AA".

 

The range is calculated here:

RamonG_0-1635760477660.png

The attached VI is from an old library which has served me well and should work for you.

Note that the rows and columns start at 1 not 0.

 

0 Kudos
Message 4 of 5
(1,719 Views)
Solution
Accepted by topic author kimtae

Ah That 26 was the number of Alphabet!!!!!

Thank you very much.

I will try to change my coding, referring your VI file.

Thank you very much and God bless you and have a good day and 

you will make many money.

 

0 Kudos
Message 5 of 5
(1,702 Views)