Convert a list with TCP/IP to Table

Hello, I’m sending real-time data from pycharm to TD, however, I receive columns of lists. How can I define a table to put each value of the lists in a cell? I attached an image of the received data. Thanks for your time:)

It would probably be best to send your data in JSON format from pycharm. Then you can add something like this in the onReceive callback for the TCP/IP DAT:

data = json.loads(message)

The appendRow method is already expecting a list so it should be as simple as that.

So in pycharm just run this on your data before sending it:

msg = json.dumps(your_list_of_data)
1 Like