Temporarily storing a table

What would be the best way to dump out a DAT table into another one on demand? The end goal here is to dump out live data coming in to ‘freeze’ it, and then compare that frozen data to the live data coming in, if that makes sense. It seems like it should be relatively simple to do, and I think I know how to do the second step, but I can’t find the right method for just batch dumping ~500 cells of data into another table.

Thanks for any help!

You could connect a Null DAT and lock it with the python code:

op('null1').lock = 1

And unlock it with

op('null1').lock = 0

another way is to copy the table in Python by using

op('myNewTable').copy(op('myExistingTable')) 	

(make sure you have already placed a Table DAT named ‘myNewTable’)
see more info here: docs.derivative.ca/Working_with_DATs_in_Python

Excellent stuff, thank you! I was just lying in bed and thinking about this and remembered you can access the lock function with python! Glad I’m getting the hang of this :slight_smile: