AFL.automation.loading.ViciMultiposSelector#

Classes

FlowSelector()

SerialDevice(port[, baudrate, timeout, ...])

ViciMultiposSelector(port[, baudrate, ...])

class AFL.automation.loading.ViciMultiposSelector.ViciMultiposSelector(port, baudrate=9600, portlabels=None)[source]#
__init__(port, baudrate=9600, portlabels=None)[source]#

connect to valve and query the number of positions

Parameters:
  • to (port - string describing the serial port the actuator is connected)

  • use (baud - baudrate to)

  • naming (portlabels - dict for smart port) – 3,’instrument’:4,’rinse’:5,’waste’:6}

  • {'sample' (of the form) – 3,’instrument’:4,’rinse’:5,’waste’:6}

selectPort(port, direction=None, block=True)[source]#

moves the selector to portnum

if direction is set to either “CW” or “CCW” it moves the actuator in that direction. if unset or other value, will move via most efficient route.

Parameters:
  • port (String or int) – the name, or number, of the port to switch to

  • direction (String, default=None) – direction “CW” or “CCW” to perform the move in

  • block (bool, default=True) – block return until move completes

getPort(as_str=False)[source]#

query the current selected position