Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Bluesky: Align and Acquire

Qingteng Zhang edited this page Oct 7, 2020 · 1 revision

Start Bluesky

cd ~/.ipython-bluesky/user/${Name_of_Cycle}/${Name_of_User_Data_Folder}/

bluesky8IDI

image image

Enter Alignment Mode

pre_align() This command moves the pin diode into the beam. Needs to be done only once. The diode is in front of the detector so make sure to run post_align() before using the detector.

Move X Stage to the Center of the Scan (For Example At 0)

mov samplestage.x 0

Align Stage in X Using Default Values

RE(align_x())

image

Align Stage in X Using Customized Values

RE(align_x(pos_start=-1, pos_stop=1, num_pts=61))

image image

If the graph is not closed, the next scan will be plotted on top of the first one if the same motor is used. If the graph is closed, the next scan will automatically open a new graph.

Use align_x?? to show the source code including the full path and default values

image

Align Stage in Z Using Default Values

mov samplestage.z 0

RE(align_z())

Finish Alignment and Enter Acquisition Mode

post_align() (Only once)

Load Bluesky Plan

%run -m bp_${Name_of_User} (Run it every time bp_${Name_of_User}.py is changed)

image

Run the Scan Defined in the Bluesky Plan

image