AFL.automation.instrument.APSDNDCAT#

Classes

APSDNDCAT([overrides])

Driver(name[, defaults, overrides, useful_links])

PySpecClient([address, port])

This class will interact with the spec server on the hutch IDB3 computer and allow SARA pass the appropriate commands

class AFL.automation.instrument.APSDNDCAT.APSDNDCAT(overrides=None)[source]#
defaults = {'detectors': ['hs102', 'hs103', 'hs104'], 'diode_counter': 'cntr3', 'empty transmission': None, 'exposure': 1.0, 'i0_counter': 'cntr1', 'measurement_positions': [-7.18, 0.81, 6.81], 'sample_axis': 'samp_h', 'sample_thickness': 1.58, 'source_data_dir': '/home/afl642/dnd-data/processing/%filename%/plot_files/', 'symlink_data_dir': '/home/afl642/dnd-symlink-data/', 'transmission strategy': 'sum'}#
__init__(overrides=None)[source]#

connect to spec

pre_execute(**kwargs)[source]#

Executed before each call to execute

All of the kwargs passed to execute are also pass to this method. It is expected that this method be overridden by subclasses.

setReducedDataDir(path)[source]#
measureTransmission(set_empty_transmission=False, return_full=False)[source]#
lastTransmission(set_empty_transmission=False, return_full=False)[source]#
measureTransmissionQuick(exp=0.05, fn='align')[source]#
interactiveLoad(name='lineup', cutoff_trans=0.8, timeout=120)[source]#
getExposure()[source]#

get the currently set exposure time

getFilename()[source]#

get the currently set file name

getLastFilePath(**kwargs)[source]#

get the currently set file name

setExposure(exposure)[source]#
setFilename(name)[source]#
getElapsedTime()[source]#
getData(**kwargs)[source]#
getMotorPosition(name)[source]#
moveAxis(axis, value, block=False)[source]#

Moves a single axis using a connection to a labview vi. @param axis: the axis id or name of the motor to move @param value: the position of the motor to move to @param block: if True, this function will not return until the move is complete.

expose(name=None, exposure=None, nexp=1, block=True, measure_transmission=True, make_symlinks=True)[source]#
scan(axis, npts, start, step, name=None, exposure=None, block=False)[source]#
status()[source]#