05-11-2012 09:50 AM
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
05-14-2012 07:29 PM
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.