LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Empty a Table Indicator ?

Solved!
Go to solution

I run a test in the front panel and then the results populate in the table indicator as shown below. 

 

Capture.PNG

 

At the moment to clear the table requires highlighting the table and going to Edit> "Reintialize Selected Values to Default". 

 

This clears all the data from the table. But I was wondering if a more user friendly approach can be used e.g. 

 

1. Upon the next Run the table automatically clears

2. Manually clear the table with a tab button

 

Would appreciate any feedback. 

 

Many Thanks

0 Kudos
Message 1 of 6
(4,691 Views)

Hi neunited,

 

write an empty string array to the table. Clear column/row headers using their property nodes.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(4,682 Views)

Thanks GerdW, 

 

Empty string works for Row headers but I still want to keep the headers of the columns. 

 

I only want to clear the data inside the table rather than the column headers which I still want to keep. At the moment I'm using an invoke node to reinitialize the values to default - But I don't really see that as permanent solution. 

 

Many Thanks

0 Kudos
Message 3 of 6
(4,658 Views)
Solution
Accepted by topic author neunited

grafik.png

Just program what GerdW recommended: Write an empty array to a local variable of your table control.

 

Regards, Jens

Kudos are welcome...
Message 4 of 6
(4,651 Views)

Hi neunited,

 

Empty string works for Row headers but I still want to keep the headers of the columns.

You didn't say so in your first post…

Then just clear row headers and data!

 

I only want to clear the data inside the table

I repeat: write an empty array into the table!

Best regards,
GerdW


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

Thanks, 

 

The key point you included was using a local variable. Job done!

0 Kudos
Message 6 of 6
(4,641 Views)