LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using SetTableCellRangeVals, can I append the array at the end?

I need to stuff about 20000 entries into a table but the length is variable.  I am using SetTableCellRangeVals using an array of size 2000 rows and 7 columns.  However, I couldn't get it to work where each successive array is added at the end.  My code is below.  Can anyone tell me how to get it where the data is appended at the end?  I tried changing the "top" parameter of MakeRect to be the last entry plus 1 (2001) but that didn't work because only one row was displayed.
Thanks so much,
Donna
 
  if (arrayRowNum >= (NUMBER_OF_ROWS * NUMBER_OF_COLUMNS))
  {
   // Time to write the buffer to the screen, reached max buffer size
       
        numOfRowsDisplayed = NUMBER_OF_ROWS;
   SetTableCellRangeVals (history_log_menu, HIST_LOG_HISTORY_TABLE, MakeRect(1,1,numOfRowsDisplayed,NUMBER_OF_COLUMNS),
       histTableData, VAL_ROW_MAJOR);
   
   
   //sumOfRowsDisplayed = sumOfRowsDisplayed + numOfRowsDisplayed;
            arrayRowNum = 0;
   destRow = 1;
   
  }
0 Kudos
Message 1 of 3
(2,893 Views)

You actually can use SetTableCellRangeVals starting from rows other that the first one, as you can see in the simple project attached.

The reason why your code does not produce the expected result must be searched in other directions. Have you tested the return code from SetTableCellRangeVals function?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 3
(2,881 Views)

Thanks for your response.  That is what I tried but I will try again and check the error code.

Donna

0 Kudos
Message 3 of 3
(2,871 Views)