LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Select all rows in a specific column

Solved!
Go to solution

hi,

i have an excel file full of data and i would like to display it in labview table control

the number of rows in excel file is undefine but i know which colume there is.

so now im using report generation tool kit to read my excel file by setting the row and colume position, but if i set "-1" on both rows which is to read all, and the column position, an error occur.

 

anyway to solve it?

0 Kudos
Message 1 of 8
(4,558 Views)

 


64864050 a écrit :

hi,

i have an excel file full of data and i would like to display it in labview table control

the number of rows in excel file is undefine but i know which colume there is.

so now im using report generation tool kit to read my excel file by setting the row and colume position, but if i set "-1" on both rows which is to read all, and the column position, an error occur.

 

anyway to solve it?


 

There is no problem with the -1 row index, as long as you read a single column.

To read multiple column you must define the start and end of the array block. Since you know your column number, you just have to determine the row number. You can use the Excel Get Last Row.vi, as shown below.

 

 

20083iDC18A10216BF5E90

Chilly Charly    (aka CC)

         E-List Master - Kudos glutton - Press the yellow button on the left...
        
0 Kudos
Message 2 of 8
(4,542 Views)
Solution
Accepted by topic author 64864050

 


64864050 a écrit :

hi,

i have an excel file full of data and i would like to display it in labview table control

the number of rows in excel file is undefine but i know which colume there is.

so now im using report generation tool kit to read my excel file by setting the row and colume position, but if i set "-1" on both rows which is to read all, and the column position, an error occur.

 

anyway to solve it?


 

There is no problem with the -1 row index, as long as you read a single column.

To read multiple column you must define the start and end of the array block. Since you know your column number, you just have to determine the row number. You can use the Excel Get Last Row.vi, as shown below.

 

 

20083iDC18A10216BF5E90

Chilly Charly    (aka CC)

         E-List Master - Kudos glutton - Press the yellow button on the left...
        
0 Kudos
Message 3 of 8
(4,542 Views)

how do you unbundle it to become position (Excel).row ?

20085i9B713AEE0BC1E8A8

i got it like this instead of your example

0 Kudos
Message 4 of 8
(4,530 Views)

Right click on the unbundle by name node, and select the output you need.

Remember :  "Right click in LabVIEW is always your friend"

Chilly Charly    (aka CC)

         E-List Master - Kudos glutton - Press the yellow button on the left...
        
Message 5 of 8
(4,525 Views)

thanks alot!

thats was a great help

still new to labview. haha

0 Kudos
Message 6 of 8
(4,504 Views)

 Could you please share the vi?

 

Thank you in advance!

0 Kudos
Message 7 of 8
(2,611 Views)

@Mdr20 wrote:

 Could you please share the vi?


This thread is over 10 years old and there are at least two different VIs pictured. If you want the first code, recognize that it is a LabVIEW snippet and the picture already contains all you need.

0 Kudos
Message 8 of 8
(2,603 Views)