The input buffer is ~2000 characters. Strings larger than that in a single VISA write will cause the -363, Input Buffer Overun Error.
Ideally, myList could be computed/generated in the TSP Lua runtime within the 2600B scripting engine.
But if not possible for your use case, here is one way that a long array in Python can be populated into a table in the TSP side of things.
# in Python, build an array of values
record_length = 360 # how many datapoints to generate
cycles = 3 # how many sine cycles
length = np.pi * 2 * cycles
vector = np.sin(np.arange(0, length, length / record_length))
#send commannds to
# create an empty table, myList, on the 2600B
my_instr.write("myList={}")
#index through and write them on by one to table variable in the Lua runtime environment
#Lua uses 1 based index vs. zero based for Python
#myLuaArray[i+1] = PythonArray[i]
for i in range(0, record_length):
my_instr.write("myList[" + str(i+1) + "] = " + str(vector[i]))
#print out how many elements we have loaded into myList
print("Number of myList entries: " + my_instr.query("print(table.getn(myList))"))