LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the best way to have an indicator that will scroll the contents of an array that is updated while a program is running?

Solved!
Go to solution

I have a program that runs continuously. During that time errors are produced and I store them in an array. What is the best way to display the array in a window that the user could scroll up or down while the program runs?

 

Thank you.

0 Kudos
Message 1 of 8
(2,987 Views)

If you unbundle te error cluster you can see the "error number" and the "error description" which can be formatted to a string (some thing like Error 12: bla blah occured here and here(and may be other info also)) and you can populate this to a string indicator on the FP. Now since the string indicator comes with a default scroll bar it becomes easier to scroll around

 

Guru

Regards
Guru (CLA)
0 Kudos
Message 2 of 8
(2,969 Views)

What I have is a cluster of two elements, where both are 1-D arrays of strings.   I'm trying to figure out how to put the data into a table where each column is one of the arrays.

 

See attachment.

0 Kudos
Message 3 of 8
(2,942 Views)
Solution
Accepted by topic author chuck72352

Hi chuck,

 

if you would feed both arrays to the table you would also see all those strings in the table Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 8
(2,935 Views)
There's a Property Node called IndexVals that you can increment as the data is written. The array index will "follow" the data as it comes in.
Message Edited by Broken Arrow on 05-11-2010 10:53 AM
Richard






Message 5 of 8
(2,930 Views)

 Why does it work with your table and not with mine?

 

See attached.

0 Kudos
Message 6 of 8
(2,912 Views)

Hi chuck,

 

enable the horizontal scrollbar on your table and you will notice the difference Smiley Wink

Then you can also correct the wrong table header strings...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 7 of 8
(2,910 Views)