How to initialize tableDAT with many rows so that it can be updated from python

Hi :slight_smile:

If I try to dynamically write from python to the rows of a new tableDAT, say row 555, I get an error because such cells don’t yet exist.

I can manually initialize easily a small table via the editor, but if the table needs 10000 rows then it’s not practical.

Using appendRow is not an option, because I don´t want to add new rows dynamically, I want to always overwrite the same say 10000 rows, I don´t want to add new ones.

So how can I setup a large table with thousands of rows quickly so that I can later update it via python?

thank you :slight_smile:

op(“yourTableDAT”).setSize(numrows, numcols)

1 Like

@Achim thank you very much, I would execute that I guess from the python console, thank you again :slight_smile:

Or you set the row and cols parameter of a table DAT, either via UI or via python. Same result