LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

table control - what is the limit to how much I can sent to it.

Greetings,

 

I am using a table control for a test program.  Each time a feature of the unit is tested it is logged to the table control.

 

I know that the answer will depend on how many columns i am filling (9) and the length of the strings in each column,

but i need to get a ball park figure on how many rows i can write to the table control before I have problems?

 

Secondly is there something I can do to the control to lets say purge the first x number of entries to regain memory used or am I

just going to create a memory leak by doing this?

 

thanks in advance

Pete Hedlund

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

Hi phedlund,

 

According to the CVI Help Topic on "Programming with Table Controls" a table in CVI can hold an arbitrary number of rows and columns. You can use the DeleteTableRows and DeleteTableColumns functions to adjust the size of the table and the length of the strings does not effect the data structure of the table as the table should only hold pointers to strings. One thing to keep in mind is if the GetTableCellRangeVals function is used to probe the values in the table then make sure to clear the return values from memory using FreeTableValStrings, etc to prevent memory leaks.


Milan
0 Kudos
Message 2 of 2
(2,818 Views)