• RE: Passing Long array using python

    I am using 2602b
  • Passing Long array using python

    I created a script that works in Test Script Builder and am simply moving the script to python.  I seem to be stuck on how to pass the long array using the keithley.write() statements.  Things work if I shorten the array, but if i send the full array in I get an error input buffer overrun -363.

    My code is relatively simple:

    myList = {-.650, -6.30, -.670, -.625, -.665, .........-.170}  has 205 data points
    smua.trigger.source.listv(myList)

    I have tried to break up the data in multiple write statements, i have tried sending it in one statement, but i seem to missing something.  Is there a continuation character needed when breaking up the array?
    keithley.write('myList = {-0.625, -0.580, -0.620, -0.575,.....-0.580, ')
    keithley.write('-0.535, -0.575, -0.530, -0.570,..... -0.490,')
    .
    .
    .