Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

EPICS PV step scans use the BlueSky software from BNL (https://nsls-ii.github.io/bluesky/).  In this mode one or more PV's are modified while the DAQ is paused, then data is acquired (, either for a :

  1.  a fixed number of shots,
  2.  a fixed time, or
  3.  until the event code sequencer completes.

Then or a fixed time) then the DAQ is paused again and the PV is modified again for the next "step".  BlueSky supports complex coordinated motion of multiple PV's.

An example python script has been created to demonstrate support for PV scans with the RIX instrument.

...

Code Block
languagetext
titlerix_bluesky_scan.py help
usage: rix_bluesky_scan.py [-h] [-p {0,1,2,3,4,5,6,7}] [-C COLLECT_HOST]
                           [-t TIMEOUT] [-c READOUT_COUNT] [-g GROUP_MASK]
                           [--config ALIAS] [--detname DETNAME]
                            [--config ALIAS]
                           [--detname DETNAME] [--scantype SCANTYPE] [--seqctl SEQCTL [SEQCTL ...]] [--record] [-v]

optional arguments:
   -h, --help           help            show this help message and exit
   -p {0,1,2,3,4,5,6,7}   platform (default 2)
   -C COLLECT_HOST       collection   collection host (default drp-neh-ctl001)
   -t TIMEOUT           TIMEOUT            timeout msec (default 10000)
   -c READOUT_COUNT COUNT        # of events to aquire at each step (default 120)
   -g GROUP_MASK             bit mask of readout groups (default 36)
   --config ALIAS  ALIAS          configuration alias (default BEAM)
   --detname DETNAME       detector name (default 'scan')
   --scantype SCANTYPE    scan type (default 'scan')
   --record seqctl  SEQCTL          [SEQCTL ...]
                        sequence control (e.g. DAQ:NEH:XPM:0:SeqReset 4 [DAQ:NEH:XPM:0:SeqDone])
  --record              enable recording of data
   -v                   v                    be verbose

step_value Handling

...