Built-in macros =============== activate -------- Activates all detectors or those specified. :: activate [ ... ] ascan ----- Software scan one or more motors in parallel. :: ascan ... bookmark -------- Bookmarks the specified motors at their current dial positions. :: bookmark <'bookmark name'> ... Also saves existing bookmarks to all available ``MotorMemorizer`` objects. ct -- Make a single acquisition on the active detectors without recording data. Optional argument specifies exposure time, the default is 1.0. :: ct [] deactivate ---------- Deactivates all detectors or those specified. :: deactivate [ ... ] dmesh ----- Software scan on a regular grid of N motors, with positions relative to each motor's current one. Moves motors back at the end. :: dmesh ... dscan ----- Software scan one or more motors in parallel, with positions relative to each motor's current one. Moves back afterwards. :: dscan ... fermatscan ---------- Software scan in the shape of a fermat spiral (good for ptychography scan). The center of the spiral will be the center of the given rectangle. Both motors have to be in the same units. :: fermatscan optional keyword arguments: optimize: boolean ... will try to solve the traveling salesman problem WARNING: can be slow for large scans! liveplot -------- Start a live plot recorder which will plot coming scans. :: liveplot [] Examples:: liveplot xmotor diode1 liveplot diode1 loopscan -------- A software scan with no motor movements. Number of exposures is + 1, for consistency with ascan, dscan etc. :: loopscan lsbook ------ Lists the currently defined bookmarks or the contents of a specific bookmark. :: lsbook [] lsdet ----- List available detectors. lsm --- List available motors. lsmac ----- List available macros. Do ? (without <>) for more information. lsrec ----- List active recorders. lstrig ------ List available trigger sources. mesh ---- Software scan on a regular grid of N motors. :: mesh ... optional keyword arguments: jitter: float ... Randomizes perfect grid positions. meshjmesh --------- 2D Software scan for NearField ptychography. Each point of a larger 2D mesh scan is another smaller 2D mesh. meshjmesh The start and stop position of the coarse mesh are in aboslute coordinates, while the start and stop positions of the submesh are relative coordiantes. 2nd axis is the fast axis. mv -- Move one or more motors. :: mvr ... mvd --- Move one or more motors to an abolute dial position. Not implemented. mvr --- Move one or more motors relative to their current positions. :: mvr ... path ---- Print the current data path. restore ------- Restore a bookmarked position by moving all motors there. rmbook ------ Delete one or all bookmarks defined with the bookmark command. :: rmbook [ ...] Also updates all available ``MotorMemorizer`` instances. setlim ------ Set limits on motors. :: setlim ... Also saves new limits to all available ``MotorMemorizer`` objects. setpos ------ Sets user position on motors. :: setpos ... Also saves new user positions to all available ``MotorMemorizer`` objects. spiralscan ---------- Software scan across a 2D Archimedes spiral centered on the current position. :: spiralscan startlive --------- Starts software live mode on listed eligible detectors. If none are listed, all active and eligible detectors are started. :: startlive [ ... ] stoplive -------- Stops software live mode on listed eligible detectors. If no arguments are given, all active live detectors are stopped. :: stoplive [ ... ] tweak ----- An interactive scan where motor positions are chosen manually for each point. Useful for tweaking motors and reading the currently active detectors after each step. :: tweak [ ] umv --- Like mv, but prints the current position while moving, and returns when the move is complete. umvr ---- Like umv, but in positions relative to the current ones. userlevel --------- Get or set the current user level. :: userlevel [] wa -- Print the positions of all motors available at the current user level. wm -- Print the positions of one or more motors. :: wm ... wms --- Silent 'where motor'. Print the positions of one or more motors but do not print any output. :: wms ...