LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Any ideas on how to speed up the table refresh rate?

When adding rows to an existing table control, the screen refresh rate is extremely slow. I have had this issue with high and low speed computers. One solution, although not acceptable, was to hide the table while adding rows, then re-display the table. This sped up the add-row process, but of course caused the table to flash annoyingly. Any other suggestions? Thanks in advance.
Message 1 of 3
(3,436 Views)
To speed up table refreshing you should:
- add all rows at one call,
- to insert values use SetTableCellRangeVals function,
- before updating table set ATTR_VISIBLE to '0' when you finish set
ATTR_VISIBLE to 1
( don't call ProcessDrawEvents or ProcessSystemEvents while updating
table )

Using this three metodhs I speed up table refreshing (100 x 2000) more than
1000 times.

Regards
Jaroslaw Przywieczerski

U¿ytkownik bthorp w wiadomooci do grup dyskusyjnych
napisa³:50650000000800000007240000-993342863000@exchange.ni.com...
> When adding rows to an existing table control, the screen refresh rate
> is extremely slow. I have had this issue with high and low speed
> computers. One solution, although not acceptable, was to hide the
>
table while adding rows, then re-display the table. This sped up the
> add-row process, but of course caused the table to flash annoyingly.
> Any other suggestions? Thanks in advance.
Message 2 of 3
(3,436 Views)
Setting ATTR_VISIBLE to '0' is great improvement, but unapplied for changing BG color of individual cells (not row or column). I need to change cells BG color in <1ms, and in some rare cases thing work, in other (only close and reopen LabView) not, they need almost 10 time more times.
0 Kudos
Message 3 of 3
(3,056 Views)