LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Fast method to fill Table with ring controls from index

Dear Users,
 
I have a rather big table that contains one row with ring control cells.
Teh table is filled from a few arrays before usage and the user is supposed change the value of certain cells by selecting the ring items.
 
 I have 2 questions:
1.) is there a fast way to fill the ring items (value list ) of a complete column ?
     All cells should have the same ring elements.
     (The function InsertTableCellRangeRingItem() is rather slow...)
 
2.) is there a fast way to fill the column using an array of ring indices ?
     I have an array of indeces present that I want to use to fill the whole column at one.
     Using SetTableCellValFromIndex() is rather slow. I would need a function like SetTableCellRangeValFromIndex
     Is there any possibility ?
 
Thanks for your help !!!
ps I'm using V8.0.1
0 Kudos
Message 1 of 3
(3,291 Views)
Hello MakaT,

Sadly, the short answer is no. There is no faster way.
Those are the best functions to use for the capability you need.

Best Regards,
Wolfgang


Message 2 of 3
(3,242 Views)

Hi Wolfgang,

thanks for your reply! I think I can live with that since the functions seem to be a lot faster if I display the table only after I have filled it.

Another question: Is there any possibilty to get the index of the selected element in a ring control of a table  i.e something like : GetTableCellRingIndex() or better GetTableCellRangeRingIndex()  ??

At the moment I get the selected ring element this way and store it in an array

for (all table rows)
{
    GetTableCellVal(panel, control, actcell, &text); 
    GetTableCellRingIndexFromValue(panel, control, 0, actcell, &index, text);
 'save index to array'
}

Thanks again for your help !
Best regards
Torsten

 

0 Kudos
Message 3 of 3
(3,233 Views)