LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Fast loadin data to table

Hello,

I looking a way for fast loading data to table.

For example:

I have data structure of Students.

struct STUDENTS

{

     int    ID;

     char Name[15];

     char Lname[20];

     int    Picture_BitmapID;

}

 

I create a table wich collumns suitable data types. (Numeric[int], string,string,picture).

I have 10,000 records. If  i using "for" loop on each row and use SetTableCellAttribute(,,ATTR_CELL_VAL,) its  very slow for each cell.

Is there a way to load data more faster?

 

Best Regards

Boris

 

    

 

Best Regards
Boris
0 Kudos
Message 1 of 4
(3,948 Views)

To optimize performance and minimize the number of times that a table draws, use the SetTableCellRangeVals and FillTableCellRange functions. These functions set the values of multiple table cells, so they are more efficient than calling SetTableCellVal multiple times.

To minimize the number of times that a table draws, you can hide the table prior to calling SetTableCellRangeVals or SetTableCellVal.

0 Kudos
Message 2 of 4
(3,944 Views)
Thank you very much.
I saw this function but I do not know to use on different variables.
Where can I find any example?

Thank you
Boris
Best Regards
Boris
0 Kudos
Message 3 of 4
(3,934 Views)

Some related posts can be found e.g. here and here

0 Kudos
Message 4 of 4
(3,929 Views)