[4, 1, 'Seconds', 1], ['', 2, 'Seconds', 1], ['', 3, 'Seconds', 1], [5, 1, 'Seconds', 1], ['', 2, 'Seconds', 1], ['', 3, 'Seconds', 1], ], pre=Set('motor_x', 1, completion=True), post=[ Set('motor_x', orig_motor_x, completion=True), Set('motor_y', orig_motor_y, completion=True), ], log_always=('neutrons', 'setpoint')) cmds = table.createScan() try: client = ScanClient('localhost', 4810) scid = client.submit(cmds, name="2D table scan example") client.waitUntilDone(scid) print "Number of log calls: %d" % client.lastSerial(scid) # get raw data back as a Python dict data = client.getData(scid) print data # Create table for motor_x, motor_y and neutrons table = createTable(data, 'motor_x', 'motor_y', 'neutrons', 'setpoint') print "Position X: ", table[0] print "Position Y: ", table[1] print "Counts : ", table[2] print "Setpoint : ", table[3]
from scan.client.scanclient import ScanClient from scan.commands.delay import Delay client = ScanClient() cmds = [Delay(1.0)] client.submit(cmds, "Test")