6. Command cheatsheet#
This section provides a quick summary of the data acquisition commands discussed in the previous sections.
Stopping a measurement
To stop any command do Ctrl-C Ctrl-C
That is, hit Ctrl-C twice!
This will pause the running command and return you to the command line.
Do RE.resume() to continue the command from where it stopped.
Do RE.stop() to fully stop the command.
Note
Parentheses – () – are an essential part of the
syntax. Same for RE() and % when specified.
6.1. General commands#
Todo
Fix cross-links
shb.open()/shb.close()Open / close the photon shutter 🡆 Section 2.5.1
RE(mv(delta, <value>))Move any named motor TO a position (
deltais an example) 🡆 Section 2.1RE(mvr(delta, <value>))Move any named motor BY an amount (
deltais an example) 🡆 Section 2.1RE(mv(attenuator, N))Set attenuator, N is an integer between 0 and 15 🡆 Section 2.3
RE(mv(dwell_time, 0.5))Set measurememt time 🡆 Section 3.1
RE(count([detector], N))Count on a detector N times. Detector can be
struck,mythen, etcRE(linescan(<motor>, <detector>, <start>, <stop>, <N>))move a motor, plot a signal 🡆
Section %sRE(pluck())Select a point from a plot on screen and move that motor to that position 🡆
Section %s
6.2. Alignment scans#
RE(align_slits())Align slits around beam and make beam position at slit position = 0 🡆 Section 4.3
RE(linescan(dethor, 'mythen', -3, 3, 61)Align the dethor motor to center detector on beam 🡆 Section 4.4
RE(mythen_calibration(-4, 1, 1001))Mythen calibration routine 🡆 Section 4.5
6.3. Measurement scans#
RE(xrr())Make an XRR scan