LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

HI how can i speed up building a table control on CVI5.5 when i try to build control with 1000 rows or more ( the columns are not the same type) it takes up to 30 sec to set the value of all the rows.

Set the value of all the cells in a column at the same time with SetTableCellRangeVals. This means that you will only have to update the Table once for each column which should be very fast.

Best Regards,

Chris Matthews
Measurement Studio Support Manager
0 Kudos
Message 2 of 4
(2,935 Views)
An other trick to speed up the filling of the cells is to use

SetTableCellAttribute (panel, id, pos, ATTR_CTRL_VAL, szText);
instead of
SetTableCellVal(...)

Stephan



"Chris Matthews" schrieb im Newsbeitrag
news:506500000005000000651C0000-984280909000@quiq.com...
> Set the value of all the cells in a column at the same time with
> SetTableCellRangeVals. This means that you will only have to update
> the Table once for each column which should be very fast.
>
> Best Regards,
>
> Chris Matthews
> Measurement Studio Support Manager
0 Kudos
Message 3 of 4
(2,935 Views)
Hiding the table before updating it is another way to gain speed.
For example:

SetCtrlAttribute (panelTop, PANEL_TOP_TABLE, ATTR_VISIBLE, 0);
Table update calls ...
SetCtrlAttribute (panelTop, PANEL_TOP_TABLE, ATTR_VISIBLE, 1);

Nick

"Stephan Gerhards" wrote in message
news:3aaf2949@newsgroups.ni.com...
> An other trick to speed up the filling of the cells is to use
>
> SetTableCellAttribute (panel, id, pos, ATTR_CTRL_VAL, szText);
> instead of
> SetTableCellVal(...)
>
> Stephan
>
>
>
> "Chris Matthews" schrieb im Newsbeitrag
> news:506500000005000000651C0000-984280909000@quiq.com...
> > Set the value of all the cells in a column at the same time with
> > SetTableCellRangeVals. This means that you will
only have to update
> > the Table once for each column which should be very fast.
> >
> > Best Regards,
> >
> > Chris Matthews
> > Measurement Studio Support Manager
>
>
0 Kudos
Message 4 of 4
(2,935 Views)