Design and Correction strengths #58
JeanLucPons
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
We need this concept of design and correction strength to handle magnets using 2 power supplies that affect the same multipole.
This feature can also be useful for other topics such as optic correction, optic change, specific ID tuning, etc...
The actual strength of the magnet is: design_strength + correction_strength.
Proposal:
At the loading time, a
designStrengthA&B field is created in pyAML which is a copy ofPolynomA&B (simulator) or deviceDesignStrength(control system). We expect that theDesignStrengthvaries only for new setup like low alpha, min beta, low halo....A
correctionPolynomA&B is created and initialized to 0 if not already exists.2 functions at the holder level to load and save correction strengths should be added.
If you don't want to use correction strength, the actual behavior must be preserved.
Internally pyAML will compute AT PolynomA & B or control system strength.
The access to design strength in pyaml is not mandatory and can be computed using strength - correction_strength.
However the control system magnet devices should provide access to a DesignStrength RO attribute or implement Strength and CorrectionStrength attribute (for identity magnet model). At ESRF our magnet devices provide Strength and CorrectionStrength attributes as shown below:
Other magnet models can be written to handle design and correction strength as needed.
Exemple:
All reactions