LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Loading data into a table is slow

I have a table control. I have to load it with 14 columns X 2300 rows of data. Takes about 8 seconds on my work desk computer. When we run the same S/W on the products test station computer the the table takes about 30 seconds to load, real slow. I am thinking it's a dll or a library difference? We run the same versions of CVI all around. Others who run this code on their desktops experience the same problem, not on mine. We use TortoiseSVN for version control so its not differences in the code. What gives?

0 Kudos
Message 1 of 2
(2,432 Views)

A good solution to speed up table update is to hide the table during the process. To hide the table, it must not be the active control in the panel. If no screen update is performed during update, the user won't see the table hide and show.

 

Also, I have found that using SetTableCellAttribute (..., ..., MakePoint (..., ...), ATTR_CTRL_VAL, ...); in a loop is significantly faster that using SetTableCellRangeVals, provided the table is hidden.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,404 Views)