These are a (very) few of the spec commands, which hopefully will be enough to get many users through their experiments. A more extensive list may be found here.

General Commands

These work in all Bliss windows (optics, eh1, oh2, tdxrd, nscope).

wa() shows the current positions of all defined motors

wm(motor1,motor2,...) shows the current positions of motor1, motor2,...

sheh1.open(), sheh3.open() opens the beam shutter (between the optics and experimental hutches)

sheh1.close(), sheh3.close() closes the beam shutter

mv(motor1,abs_pos1,motor2,abs_pos2,...)
umv(motor1,abs_pos1,motor2,abs_pos2,...)
moves a motor or motors to an absolute position in degrees or mm, with or without update while moving

mvr(motor1,rel_move1,motor2,rel_move2,...)
umvr(motor1,rel_move1,motor2,rel_move2,...)

moves a motor or motors a distance in degrees or mm, relative to the current position

newproposal('maXXX') set the saving path with the current experiment number

newsample('sample1') create a directory in the proposal folder for a specific sample

newdataset('dataset1') create a directory in the proposal folder for saving a dataset in the sample directory

ct(time_in_sec) integrates the counters over the given time (default 1 s)

ascan(motor,start,end,intervals,ct_time) step scans a motor between two absolute positions

dscan(motor,start,end,intervals,ct_time) step scans a motor between two positions relative to the present location

motor.position = X redefines the current position as position. Should be used with care by users, who should NEVER reset beamline slits or optical elements