Proposal for working with currents instead of strengths #11
Replies: 3 comments 5 replies
-
For high level application, we can also define a global mode that tells if we want to work with current or strength without breaking compatibly with existing specifications. The mode has no impact if you specify sr.live.mode.set('current')
sr.live.quad.set(value) # Sets a current
sr.live.mode.set('strength')
sr.live.quad.set(value) # Sets a strength |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I'm not entirely sure that I understand your magnets at ESRF because that seems very complicated. But for running measurements using currents I would say this is what we would like to be able to do:
So there needs to be some way for applications to be able to run both in hardware and physics units in a seamless way and for the developers of the high-level applications to be able to write them in some unit independent way. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
At the ESRF we call a "pseudo current" , a current associated to a single multipole (Ih,Iv,..). It can be a linear combination of power supply currents (PS) as illustrated in Fig 1. For a simple magnet this "pseudo current" is then the current circulating in the coil (Fig 2).
So i propose to expose these pseudo currents as read/write for the control system in order to be able to work with currents.
We can keep current for the python attribute name.
Problem: This will failed with our sextupole model that do not expose these pseudo currents. Very roughly speaking, this model integrates calibration curves in a tensor and look for a working point to drive as best as possible correctors while minimizing the variation on the main current. In that case, access to a pseudo current will fail with an error.
Beta Was this translation helpful? Give feedback.
All reactions