IDL cheat sheet

Version 13.1 by fwilde on 2018/05/28 18:12

It's highly recommended to not edit this document. Any modification made will eventually be lost because it cannot reach back the owner replication instance of that document.

This is an overview of the most commonly used commands during a beamtime.

Sample positioning

IDL command

description

motion

s_stage_x/z

move rotation stage in x/z-direction

relative [ mm ]

s_pos_x/y/z

move sample stage in x/y/z-direction

relative [ mm ]

s_angle, 90

rotate sample around z axis

relative [ deg ]

s_in

move sample to "in" position

predefined

s_out

move sample to "out" position

predefined

s_change

move sample to "change" position

predefined

Detector positioning

IDL command

description

motion

pressure_on

enable detector y movement


o_ccd_dist, 5

move detector in y direction

relative [ mm ]

pressure_off

disable detector movement


Make image

IDL command

description

i=quick(100) & tv_quick, i & draw_box, [ x1, x2 ,z1 ,z2 ]

make an image & show image & draw box

a=quick_abs(100) & tv_quick, a & draw_box, [ x1, x2 ,z1 ,z2 ]

make an absorption image & show image & draw box

Monochromator positioning

IDL command

description

motion

calc_dcm_energy, 10000, /set

set DCM and undulator to 10 keV


dcm_pitch, 0.00001

move 2nd crystal pitch by 0.00001 deg

relative [ deg ]

goto_dcm_pitch,  -0.03976

move 2nd crystal pitch to -0.03976 deg

absolute [ deg ]

reflex_opt

move 2nd crystal pitch to optimal flux position