LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how extract a value from table?

how extract a value only from table with labview 5.0?
0 Kudos
Message 1 of 16
(5,632 Views)
Hello titoulaban,

a table is just a 2D array of strings. So you should use an "index array'" to get your element from the table and maybe a string conversion function to get a numerical value, if needed.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 16
(5,632 Views)
Thanks GerdW
 
Best regards
 
titoulaban
0 Kudos
Message 3 of 16
(5,610 Views)
Hello titoulaban,

you can give me some stars if you find my answer helpful 🙂 (Just right below of the message...)


Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 16
(5,601 Views)

Hi
You have to now that a table is like a array of strings. So you can easily extract the value you want . I send you a little example that will help you for sure:
With my programm  i build a random array of numbers. I convert it in string array and i write it in a table.
Then you can select a value of your table .

good luck ;o)
Kamal

Message 5 of 16
(5,584 Views)

you also can do this by clicking on the table. all you need to do is to create a property node for the table and select selection start. The output of the node has to be unbundled and connected to the index array Sub.

if you have problems, reply then i will post an example.

 

B Bakels

Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
Message 6 of 16
(5,573 Views)

Hi..

mr bartb, can i see the example?

 

My table is displaying some series of data from 6 types of input. I am planning to extract the data and execute them at the hardware output (serial) by reading row by row of the table.

 

Thanks:)

0 Kudos
Message 7 of 16
(5,220 Views)

this is my table

 

(I'm using LV 8.5)

Message Edited by t4L on 06-19-2009 09:27 AM
0 Kudos
Message 8 of 16
(5,219 Views)

So what exactly is the problem. You don't have code there to extract the rows or do anything with serial. All you need to get a row is the Index Array function.

 

That's pretty basic stuff. Have you gone through any of the tutorials?

0 Kudos
Message 9 of 16
(5,215 Views)

Hi T4l

 

I modified you VI to extract a selected row from the table. This is quite simple by done by using the index array function. Hope this helps

 

B Bakels

Labview CLD , Engineer/Manager

Promedes and DSM
using LV 7.1, 8.0, 8.2, 8.5 and 2009 SP1
http://www.promedes.nl
0 Kudos
Message 10 of 16
(5,211 Views)