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

Create an ophyd device for Applet2 undulator #724

Open
Relm-Arrowny opened this issue Aug 5, 2024 · 4 comments · May be fixed by #744
Open

Create an ophyd device for Applet2 undulator #724

Relm-Arrowny opened this issue Aug 5, 2024 · 4 comments · May be fixed by #744
Assignees

Comments

@Relm-Arrowny
Copy link
Contributor

Relm-Arrowny commented Aug 5, 2024

I17 will be using the same type of ID as I10, I21 and I06. This issue is to create an ophyd_async device to control this type of ID.
This type of ID has 4 extra degrees of freedom beside the gap, each bank of magnet can move independently to each other. To produce different polarisation as well as energy.

User expected to be able to set energy and polarisation states: PC, NC, LH, LV and LA. With LA there will also be a polarisation angle associated with this state.
These polarisation states are achieved by moving the ID motors into its correct position using a lookup table, each polarisation has their own look up table, therefore changing polarisation is effectively changing look up table.
Also worth noting that, motors movement should be together. E.g. set point is put to epics pv but nothing should move until all axis is set and they should be move together,

Acceptance Criteria

Create an applet2 id device that can move all the id's motors. similar to undulator
Must connect all required PV.
Passes tests.

Ref:

/dls_sw/work/R3.14.12.7/ioc/BL10I/BL10I-CS-GATE-01/5064/P/gateway.pvlist
/dls_sw/work/R3.14.12.7/ioc/BL21I/BL21I-CS-GATE-01/5064/P/gateway.pvlist

/dls_sw/work/R3.14.12.7/support/insertionDevice/db/IDGapSoftMotor.template
/dls_sw/work/R3.14.12.7/support/insertionDevice/db/IDPhaseSoftMotor.template
/dls_sw/work/R3.14.12.7/support/insertionDevice/db/IDGapVelocityControl.template

GDA implementation:
/dc/dls_sw/i10/software/gda/workspace_git/gda-diamond.git/configurations/i10-shared/scripts/calibrations/mode_polarisation_energy_instances.py
/calibrations/energy_polarisation_class.py
lookup tables:
/i10-shared/lookupTables/IDEnergy2GapCalibrations.csv
/i10-shared/lookupTables/IDEnergy2PhaseCalibrations.csv

@Relm-Arrowny
Copy link
Contributor Author

@DominicOram @stan-dot I saw the id issue on i18 and wondering if you two have any tips and comment on this? Especially, I want to make sure no such device already exist and any advice on best/standard way to implement the extra lookup table/ x-ray polarisation would be much appreciated.

@stan-dot
Copy link
Contributor

stan-dot commented Aug 5, 2024

@Relm-Arrowny for me this link is broken:




which i18 id issue? 

@Relm-Arrowny
Copy link
Contributor Author

this Saw you two discussing undulator and thought I ask :p.

@Relm-Arrowny Relm-Arrowny self-assigned this Aug 6, 2024
@DominicOram
Copy link
Contributor

You may be able to re-use #721 but it depends on the exact logic. Is it that:

  • Changing the energy still only changes the gap demand PV
  • The lookup table used for this demand is different and will change based on the polarisations
  • Changing the polarisations changes this lookup table and changes some of the phase demand positions too

Or is it that:

  • Changing the energy will change the gap demand and phase demand PVs
  • How these change are based on lookup tables
  • These tables are set based on polarisation

If it's the first I think you can reuse the existing undulator quite a bit, if it's the second I would write an ABC that they share so that we can use them interchangeably but otherwise have two separate devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants