LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuously update table

Solved!
Go to solution

I think thoult already answered my question for the most part. I know that I can't connect a single data point to an array sink, my problem was trying to figure out how to use shift registers to build the array.

 

What I'm trying to do is have multiple testing options that access the same indicator on the front panel. I was simply trying to figure out a way that I could pass data out of these loops so that I could update the indicator regardless of the test that was run.

0 Kudos
Message 11 of 18
(1,199 Views)

That shift register only builds you a 1D array and having the building of the table outside any loops makes it update only once. Lots of details are missing.

0 Kudos
Message 12 of 18
(1,194 Views)

It seems to continuously update when using a local variable outside the loop, at least for the numeric indicator. What is the best way to make my data from my sample program into a 2D array? Could I use the shift registers in conjuction with a Reshape array function?

0 Kudos
Message 13 of 18
(1,192 Views)

Why does it have to be a table? You could use a plain array 1D indicator instead, right?

Do you want to build a single column or a single row in the table?

0 Kudos
Message 14 of 18
(1,182 Views)
Solution
Accepted by topic author niedk

Here is a quick draft.

 

Of course you might want to wire directly to the table terminal inside the loop and read it from a local varaible elsewhere instead. It really depends on the situation, which is currently not clear. Can you explain why you need all this? Maybe there is a much more elegant solution.

 

Message 15 of 18
(1,179 Views)

It doesn't need to be a table for this case I guess, I was just using that because it was a front panel indicator that would display multiple data points? What 1D array indicator are you referring to?

0 Kudos
Message 16 of 18
(1,176 Views)

Ok thanks! So for local variables you dont need to wire a read function of the local variable into the table itself? It automatically sends the data to the table by itself?

0 Kudos
Message 17 of 18
(1,175 Views)

A local variable just points to the value of an user interface object, it is not something separate. You really need to start with a few turorials!

 

(Of course local varaibles can lead to race conditions and force additionl data copies in memory, but that's a seperate discussion. Local variables blur the distinction between control and indicator, because they allow to write to a control and read from an indicator. This is useful to ui programming, e.g. to programmatically modify user controls.)

0 Kudos
Message 18 of 18
(1,173 Views)