LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the faster way to clear data and attributes from a string table?

Hello there,

This one has bugged me for a while... The scenario, use two string tables to constantly show where you are in a test sequence. The two tables represent Transmit and Receive. Each table shows four rows and the curently executing row is highlighted. Highlighting proceeds in rows 1,2,3,4 and then repeats to the top (1). The number of tests/commands is defined before the table is written to for the first time.

The problem I'm experiencing is that it takes a considerably long time to remove any property node modifications to rows/cells. Is there a quick way to remove all data and reset the table attributes to default?

-Chroma

LV 8.21
TS 4.0
WinXP SP2
0 Kudos
Message 1 of 6
(3,218 Views)
Two things you can do: 1) before updating the cell attributes disable front panel updates. Then re-enable them at the end. 2) keep track of the cells that you have modified so you only have to reset them.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 6
(3,212 Views)
Thanks for your response Mike, greatly appreciated. How does suggestion 1) work? Does diabling front panel updates not apply to the whole panel? Suggestion 2) would normally be where I'd start and I've implemented this before. The fact remains it takes considerable time row by row to clear an attribute modified table.

Any other suggestions? NI?

-Chroma


0 Kudos
Message 3 of 6
(3,204 Views)
I believe mike meant defer front panel updates, which does affect the entire pane, but unless your doing something slow (not counting property nodes which will be much faster)  while deferring it shouldn't make much of a difference.

And If your just highlighting rows, you may want to consider using a multicolumn listbox (right click on the listbox indicator on the front panel and enable selection mode\highlight entire row), then just put the strings into the items names. Then just set the listbox to the row you want to highlight. So you wont even need to use any property nodes to change the highlighted row.

Matt W
0 Kudos
Message 4 of 6
(3,201 Views)
Yes, I did mean defer updates and I have seen significant improvements in operations that modify the appearance of front panel objects - like colorizing a lot of cells in a table.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 6
(3,198 Views)
I want to change the text style to bold for certain rows of a MCLB but with over 1000 rows at times, this takes FOREVER - up to 7 seconds which is unacceptable because it updates for each keystroke. I want to disable the update while I do the row by row editing but can't find the property.  I tried synchronous display but that doesn't allow writing at runtime.  I see this thread is ancient but please help!
0 Kudos
Message 6 of 6
(2,850 Views)