nabs.plans.daq_dscan

nabs.plans.daq_dscan(detectors, motor, start, end, n, *, events=None, duration=None, record=True, use_l3t=False)[source]

One-dimensional daq scan with relative (delta) positions.

This moves a motor from current_pos + start to current_pos + end in nsteps steps, taking data in the DAQ at every step, and returning the motor to its original position at the end of the scan.

Parameters:
  • detectors (list of readables) – Objects to read into Python in the scan.

  • motor (Movable) – A movable object to scan.

  • start (int or float) – The first point in the scan, relative to the current position.

  • end (int or float) – The last point in the scan, relative to the current position.

  • n (int or float) – if int, the number of points in the scan. if float, step size

  • events (int, optional) – Number of events to take at each step. If omitted, uses the duration argument or the last configured value.

  • duration (int or float, optional) – Duration of time to spend at each step. If omitted, uses the events argument or the last configured value.

  • record (bool, optional) – Whether or not to record the run in the DAQ. Defaults to True because we don’t want to accidentally skip recording good runs.

  • use_l3t (bool, optional) – Whether or not the use the l3t filter for the events argument. Defaults to False to avoid confusion from unconfigured filters.

Note

The events, duration, record, and use_l3t arguments come from the nabs.preprocessors.daq_step_scan_decorator().