we returns motor positions for all configured motors
umv motorname # moves motor to absolute position, e.g.: “umv samx 1” will move motor samx to position 1
umvr motorname # moves motor relative to current position, e.g.: “umvr samx 1” will move motor samx +1 from its current position
tw motorname # tweak motor position in steps of size #, e.g.: “tw samx 1” will open a dialog where you are asked to enter the sign (direction) of steps, and then pressing enter/return will allow you to take multiple steps of that size in a row. Type any letter to exit the dialog.
opens - open upstream shutter
closes - close upstream shutter
umv att 0 - move attenuator completely out of the beam.
att -1 = fluorescent screen. att 12 = significant attenuation
wg s1 - print positions for upstream hutch slits (define beam size with s1h and s1v)
wg s2- print positions for downstream hutch slits (guard slits)
Can move s1h, s1v, s2h, and s2v, with umv commands; units are mm
tseries #snapshots #exposuretime(s)
dscan motorname #negative #positive #intervals #exposuretime(s) - spatial scan, dimensions relative to current position
e.g. dscan bedx -10 10 20 1
Would scan bedx from -10 to +10 mm relative to the current position, with 1 mm steps and 1 second exposure times
ascan motorname #start #end #intervals #exposuretime(s) - spatial scan, absolute dimensions
e.g. ascan bedx 200 220 20 1
Would scan bedx from motor positions 200 to 220, with 1 mm steps and 1 second exposure times
plotselect choose what variable to show in the yellow spec plot
Command | Action |
pil_setup PIL5 | Sets up the detector with EPICS prefix “PIL5” as Pilatus number “0”, to save images to the current directory on CHESS_DAQ. |
pil_settrig “Internal” | Selects Internal trigger mode use when taking snapshots within scans. NOTE: this has no effect on the TriggerMode EPICS PV until a scan is performed. |
pil_on | Turns all detectors (in this case, only PIL5) “on”, such that a spec scan will trigger one snapshot per scan point. |
pil_movie 10 .1 | Immediately take 10 images, 0.1-second each. (no metadata). |
tseries 5 .5 | Perform a five-point time series, taking a half-second snapshot at each point. Images will have the format: <specfile_PIL5_SCAN#_POINT#> |
dscan samx 0 5 1 | Perform a single motor scan, taking a 1-second snapshot at each point. Images have the same format as above. |
mesh samx 0 1 samz 0 1 1 | Perform a 2D, 2-motor scan, taking 1 second snapshots at each. point. Images will have the format: <specfile_PIL5_SCAN#_ROW#_POINT#> |
pil_off | Turn off snapshot acquisition. |
pil_unsetup all | Erase SPEC’s knowledge of PILATUS detectors and associated macros. (This amounts to erasing the associative array “PIL”) |
Command | Action |
pil_setup PIL5 0 PIL5 or pil_setup PIL5 PIL5 | Sets up the detector with EPICS prefix “PIL5” as Pilatus number “0”, to save images to the “PIL5” subdirectory of the current directory on CHESS_DAQ. |
pil_setup PIL9 1 PIL9 | As above, but sets up the detector “PIL9” as Pilatus number “1”, to save images to the “PIL9” subdirectory |
pil_settrig “Mult. Trigger” | Selects Multi trigger mode on both detectors when taking snapshots within scans. This implies that there is digital output / hardware trigger hooked into both detectors, that will go “high” for each point in any scan. |
pil_on 0 1 or pil_on | Enable in-scan snapshots for both detectors. |
“tseries”, “dscan”, and “mesh” | Perform scans as in Example 1. Images will have the format <specfile_PIL#_SCAN#_POINT#> or <specfile_PIL#_SCAN#_ROW#_POINT#> for 1D or 2D scans, respectively. |
pil_off 0 | Turn off detector 0, such that only PIL9 will take images. |
Command | Action |
pil_setup PIL5 | Sets up the detector with EPICS prefix “PIL5” (the 300K) as Pilatus number “0”, to save images to the current CHESS_DAQ directory. |
pil_setup PIL9 1 | As above, but sets up the detector “PIL9” (a 200K) as Pilatus number “1”. |
pil_setup PIL6 2 | As above, but sets up the detector “PIL6” (a 100K) as Pilatus number “2”. |
pil_settrig “Mult. Trigger” | Selects Multi trigger mode on both detectors when taking snapshots within scans. For fly scanning (below), this requires that the USBCTR device is setup as described in flyscan_v4.mac, with step signal from the MDCP going into it, and the “CLK1” output going to the detectors. Also: a digital I/O output (see FLY_TRIGCHAN in id3b_NI_DIO.mac ~/Macros) goes to the USBCTR. |
pil_on 0 1 2 or pil_on | Enable in-scan snapshots for all detectors. |
flysetup | Set up the fly mode fast and slow motors, and verify USBCTR setup. |
flyscan 10 .5 100 | Scan the fast flymode motor 10 mm, taking 0.1 second. images every 0.5 mm (20 images). Images have the format <specfile_PIL#_SCAN#_POINT#>. |
flymesh 10 .1 2 .1 50 | Perform a 10 mm x 2 mm 2D flymode map, with 0.1 mm pitch and 50 miliseconds per point (100 x 20 point map). Images have the format <specfile_PIL#_SCAN#_ROW#_POINT#>. |
To query motor velocity (pulses/sec):
p motor_par(motorname, “velocity”)
To query pulses/mm
p motor_par(motorname, “step_size”)
To change velocity:motor_par(motorname, “velocity”, newvalue)
e.g.: p motor_par(bedx, “velocity”, 40000)
In-hutch PTZ camera by hutch door/on south wall (original StanCam): http://192.168.182.44/
In-hutch PTZ camera (upstream wall): http://192.168.182.81/
3B 4-channel Video encoder: http://192.168.182.43
Cave cameras: from terminal, run “vimba”
To restart preamp gui: show_amps
edit a file, “my_macros.mac” (or other filname) in specuser/Macros directory
in SPEC:
SPEC> udo my_macros.mac
check that it was read:
SPEC> prdef <macro_name>