Matts lower-level way of programming a burst with 1 slow andor rate:
source /cds/group/pcds/dist/pds/rix/scripts/setup_env.sh
traingenerator -s 14000 -b 28 -n 32001 -r 2 -d "burst" -t 910000 >& /tmp/beam.py
periodicgenerator -p 91 91000 -s 0 0 -d '10kHz' '10Hz' --repeat 3 --notify >& /tmp/codes.py
seqprogram --seq 0:/tmp/codes.py 3:/tmp/beam.py --pv DAQ:NEH:XPM:3
Matt's higher level way of programming a burst with 2 slow andor rates:
python ~weaver/lcls2-new/psdaq/psdaq/seq/rixgeneratory.py --periods 1.0 0.01 (units in seconds. generates two files beam.py and codes.py in the current directory which should be programmed with "seqprogram")
Running a standalone daq step-scan (no hutch-python). The number "9" corresponds to two bits: 9=8+1, or 9=(1<<3) | (1<<0), where 3 and 0 are the two sequence engines that have been programmed with seqprogram above. The "-g" argument is for the readout groups in the partition (2,5): 36=(1<<5) | (1<<2).
python ~weaver/lcls2-new/psdaq/psdaq/control/rix_bluesky_scan.py -p 2 -C drp-srcf-cmp004 -g 36 --detname andor_vls_0 --seqctl DAQ:NEH:XPM:3:SeqReset 9 DAQ:NEH:XPM:3:SeqDone
A hutch-python scan in "burst mode":
In [4]: daq.configure(motors=[sim.fast_motor1],group_mask=36, events=0, detname='andor_dir_0', seq_ctl=['DAQ:NEH:XPM:3:SeqReset',9,'DAQ:NEH:XPM:3:SeqDone'])
INFO configure - configure: 1 motors
INFO configure - Found readout group 5 for andor_dir_0.
Out[4]: ({}, {})
In [5]: RE(bp.scan([daq], sim.fast_motor1, -10, 10, 5))
matt's new way of setting up bursts (generates beam.py and codes.py)
A hutch-python scan in "continuous mode with 1 slow-andor event per step:
In [8]: daq.configure(motors=[sim.fast_motor1],group_mask=36, events=1, detname='andor_norm_0', record=True)
INFO configure - configure: 1 motors
INFO configure - Found readout group 5 for andor_norm_0.
Out[8]: ({}, {})
In [9]: RE(bp.scan([daq], sim.fast_motor1, -10, 10, 5))