LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read values from table

Hi!

I'm creating an message counter for simple UDP message logging tool, but as always everything didn't come out as simple as I planned. Counter VI should compare incoming message to message list and then add 1 to correct messages field in GUI's Table. Problem in this solution is that I can't read previous value from table. Is there any property or method in table, which I could use to read number value from specific table cell? Or should I use some other solution for message counter?

Thank you for your help.
0 Kudos
Message 1 of 10
(5,056 Views)
Hi Janne,

You can read and write to specific cells in a Table by using array tools.  (Doing lots of this in my current project)

Use one Index Array to define the column, and one more to define the row.  That will give you an element you can write to or read from.  

Good Luck
---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 2 of 10
(5,048 Views)

Hi pallen

Just for your information: you can use just one Index Array function and define both (the row and the column) at once.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 3 of 10
(5,039 Views)
Hi!

I have used arrays with eg. listboxes, but with listbox there is property node called item names, which I can use for geting data out of listbox. In tables I can't find similar property node.


0 Kudos
Message 4 of 10
(5,040 Views)

Hi

Using tables the property is named "Value".

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 5 of 10
(5,036 Views)
That was what I was searching. Thanks 🙂
0 Kudos
Message 6 of 10
(5,034 Views)
You can also use a local variable for the Table if the circumstances allow it.  This will be faster and less overhead.
---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 7 of 10
(5,027 Views)

I'm yoppy, I'm newbie in Labview. I face the same problem. I need to read the table cell value. I can't find GET method. Would you please give me the example VI?

0 Kudos
Message 8 of 10
(4,539 Views)

Go back and read the entire thread. Pay attention to the mention of the Index Array function.

 

This is pretty basic. There are some free tutorials.

0 Kudos
Message 9 of 10
(4,516 Views)

Okay, thank's for your immediate reply. It helps.

0 Kudos
Message 10 of 10
(4,508 Views)