Last active
March 21, 2017 15:19
-
-
Save chiahaoliu/5116f0ca0393998f9ee177896742d6ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# every time we exit out from ipython, we need to configure devices | |
# in this example, we move sample_stage_2 in x direction (ss_stg2_x) | |
xpd_configuration['temp_controller'] = cryostat | |
xpd_configuration['stat_motor'] = ss_stg2_x | |
# scanplan : 1s expo, from 300k to 303k with 1k step | |
# sample_ind <1> at motor position 1.55 | |
# sample_ind <3> at motor position 2.55 | |
# sample_ind <7> at motor position 3.55 | |
ScanPlan(bt, statTramp, 1, 300, 303, 1, {1:1.55, 3:2.55, 7:3.55}) | |
#run scan | |
xrun({}, <scanplan_ind>) # please note, {} is a trick as all the sample information has been included into ScanPlan |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#change dk_window
glbl['dk_window'] = 0.1 # don't smaller than 0.1
#set beamdump suspender, everytime you come back to ipython
set_beamdump_suspender(xrun)