On our mdsplus server I have noticed that pushing more than 1GB of data with a put command fails so I am trying to upload chunks as segments.
Currently I have found the following to work for me:
start = seg_idx
end = seg_idx
dim = 1
connection.get('BeginSegment($1, $2, $3, make_dim(*, $2 : $3 : $4), $5)',node_path, start, end, dim, data)
connection.get('PutSegment($1, -1, $2)',node_path, data)
And to get the data back I do:
connection.get('GetSegment($1,$2)',node_path,seg_idx)
While this works, I have a suspicion that this is not optimal. As even with segments I notice for some sizes of signals the mdsthin client hangs.
So in general I want to know what is the correct way to use segments with mdsthin. And in a broader sense what is the best way to upload and retrieve large signals.
Some additional context, At PPPL our server is quite old so potentially some of these issues could be due to that.
Let me know if you need more information.