Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy blueapi and run with a grid scan with a diode #12

Open
stan-dot opened this issue Jul 15, 2024 · 3 comments
Open

Deploy blueapi and run with a grid scan with a diode #12

stan-dot opened this issue Jul 15, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request python Pull requests that update Python code

Comments

@stan-dot
Copy link
Collaborator

No description provided.

@stan-dot stan-dot added enhancement New feature or request python Pull requests that update Python code labels Jul 15, 2024
@stan-dot stan-dot self-assigned this Jul 15, 2024
@stan-dot
Copy link
Collaborator Author

need to call the scan from api with a scanspec string that describes the grid trajectory.

need to supply the diode device

@stan-dot
Copy link
Collaborator Author

from @iain-hall 's notes:

Beamline script : /dls_sw/i18/scripts/beamlinestuff/I18Scans/Create_deg_Lookuptabledcm.py
Old version of beamline script in GDA : scripts/create_lookuptable_deg.py
Procedure is as follows :
Adjust undulator gap to using current lookup table for initial Bragg angle
Scan across desired range of Bragg angles, for each angle :
Scan undulator gap (current gap value ± small range) and measure on d7bdiode (Diode PV is BL18I-DI-PHDGN-07:B:DIODE:I)
Find undulator gap that gives peak d7bdiode value (fit gaussian curve, store peak position).
Fit quadratic curve to the set of Bragg angle - undulator gap values. These values are used to generate the lookup table of undulator gap vs. Bragg angle.
Scan is currently done by GDA using Jython; quadratic curve fit is done using IDL.
Undulator gap scans are are carried out at each harmonic.
Beamline staff manually update the lookup table - copy-pasting updated section (i.e. values for a range of bragg angles) into text file to replace old values.

@stan-dot
Copy link
Collaborator Author

stan-dot commented Aug 5, 2024

the deployment part is done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

1 participant