LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read integer values from spreadsheet and display the values in a table

Solved!
Go to solution

Hi all,

 

I have integer values to read from a spreadsheet and display them in a table. I am using 'Read from spreadsheet file' in 'integer' mode. I would like to display these values in a table. The problem is that the table takes only 2d-array of string as input but not integer.  

 

It works fine if I change the mode of 'Read from spreadsheet file' from 'integer' to 'string' but I want to read integers and have to use the integer values for further calculations. Please give any suggestions on displaying integers to a table.

 

Thank you. 

0 Kudos
Message 1 of 10
(3,212 Views)

You do the same thing but in the display part convert that into string and display them but for the other numeric operation you can take the values from the numeric that you are reading from the spreadsheet.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 10
(3,209 Views)

Hi Anand,

 

I tried converting each element into a string by using index array and build it back into an array of string but it failed to dsplay.

 

Thank you.

0 Kudos
Message 3 of 10
(3,206 Views)

Can you post your VI that fails?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 10
(3,202 Views)
Solution
Accepted by avinash3010

No don't take element by element just convert as a whole. See the attached example

 

Array convert.png

 

Good luck

-----

The best solution is the one you find it by yourself
0 Kudos
Message 5 of 10
(3,197 Views)

Thank you Anand...it is working..

 

but it is displaying the decimal places with zerors. any suggestion to remove this?

0 Kudos
Message 6 of 10
(3,193 Views)

Then use Numeric to Decimal String function.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 7 of 10
(3,190 Views)

Thank you very much.

 

0 Kudos
Message 8 of 10
(3,185 Views)

Hi TiTou

 

Sorry for not posting the VI. I got the solution before I could post. Thank you verymuch for replying.

0 Kudos
Message 9 of 10
(3,183 Views)

No worries, glad to see you've got a solution 🙂


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 10 of 10
(3,180 Views)