7. 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.
7.1. Helper commands#
These commands bypass the run engine and are intended for command line use only.
shb.open()/shb.close()Open / close the photon shutter ➡ Section 2.5.1
%ct/%ct NCount the monitor for the current dwell time, or count the monitor for the specified time
%ctm/%ctm NCount the monitor nd the Mythen for the current dwell time, or count the monitor for the specified time
%att NSet the attenuator level between 0 and 15 ➡ Section 2.3
%dt NSet the dwell time to a value in seconds. If the value cannot be interpreted as a number, it will be set to 0.5 seconds.
7.2. General commands#
show_symbols()Print device and plan names to the screen
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(slits.vsize, 0.15))Set the goniometer slit size ➡ Section 2.2
RE(mv(dwell_time, 0.5))Set measurememt time ➡ Section 3.1
RE(count([detector], N))/RE(count([detector1, detector2, ...], N))Count on a detector N times. Detector can be
struck,mythen, etc. Can also be a list of detectors.RE(linescan(<motor>, <detector>, <start>, <stop>, <N>))move a motor, plot a signal ➡ Section 4.1
RE(pluck())Select a point from a plot on screen and move that motor to that position ➡ Figure 4.1
7.3. Refine beam shape and position#
RE(mv(m2.yaw, 0.01))Adjust M2 yaw ➡ Section 2.5.3
RE(mv(m2.lateral, 0.01))Adjust M2 lateral position ➡ Section 2.5.3
7.4. 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
7.5. Measurement scans#
RE(xrr())Make an XRR scan