-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #811 from lnls-sirius/add-fcs
Add fast corrector controls
- Loading branch information
Showing
11 changed files
with
713 additions
and
40 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.46.0 | ||
2.47.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,199 @@ | ||
"""SI fast orbit feedback system configuration.""" | ||
from copy import deepcopy as _dcopy | ||
|
||
|
||
def get_dict(): | ||
"""Return configuration type dictionary.""" | ||
module_name = __name__.split('.')[-1] | ||
_dict = { | ||
'config_type_name': module_name, | ||
'value': _dcopy(_template_dict), | ||
'check': False, | ||
} | ||
return _dict | ||
|
||
|
||
# When using this type of configuration to set the machine, | ||
# the list of PVs should be processed in the same order they are stored | ||
# in the configuration. The second numeric parameter in the pair is the | ||
# delay [s] the client should wait before setting the next PV. | ||
|
||
_corrs = [ | ||
'SI-01M1:PS-FCH', | ||
'SI-01M1:PS-FCV', | ||
'SI-01M2:PS-FCH', | ||
'SI-01M2:PS-FCV', | ||
'SI-01C2:PS-FCH', | ||
'SI-01C2:PS-FCV', | ||
'SI-01C3:PS-FCH', | ||
'SI-01C3:PS-FCV', | ||
'SI-02M1:PS-FCH', | ||
'SI-02M1:PS-FCV', | ||
'SI-02M2:PS-FCH', | ||
'SI-02M2:PS-FCV', | ||
'SI-02C2:PS-FCH', | ||
'SI-02C2:PS-FCV', | ||
'SI-02C3:PS-FCH', | ||
'SI-02C3:PS-FCV', | ||
'SI-03M1:PS-FCH', | ||
'SI-03M1:PS-FCV', | ||
'SI-03M2:PS-FCH', | ||
'SI-03M2:PS-FCV', | ||
'SI-03C2:PS-FCH', | ||
'SI-03C2:PS-FCV', | ||
'SI-03C3:PS-FCH', | ||
'SI-03C3:PS-FCV', | ||
'SI-04M1:PS-FCH', | ||
'SI-04M1:PS-FCV', | ||
'SI-04M2:PS-FCH', | ||
'SI-04M2:PS-FCV', | ||
'SI-04C2:PS-FCH', | ||
'SI-04C2:PS-FCV', | ||
'SI-04C3:PS-FCH', | ||
'SI-04C3:PS-FCV', | ||
'SI-05M1:PS-FCH', | ||
'SI-05M1:PS-FCV', | ||
'SI-05M2:PS-FCH', | ||
'SI-05M2:PS-FCV', | ||
'SI-05C2:PS-FCH', | ||
'SI-05C2:PS-FCV', | ||
'SI-05C3:PS-FCH', | ||
'SI-05C3:PS-FCV', | ||
'SI-06M1:PS-FCH', | ||
'SI-06M1:PS-FCV', | ||
'SI-06M2:PS-FCH', | ||
'SI-06M2:PS-FCV', | ||
'SI-06C2:PS-FCH', | ||
'SI-06C2:PS-FCV', | ||
'SI-06C3:PS-FCH', | ||
'SI-06C3:PS-FCV', | ||
'SI-07M1:PS-FCH', | ||
'SI-07M1:PS-FCV', | ||
'SI-07M2:PS-FCH', | ||
'SI-07M2:PS-FCV', | ||
'SI-07C2:PS-FCH', | ||
'SI-07C2:PS-FCV', | ||
'SI-07C3:PS-FCH', | ||
'SI-07C3:PS-FCV', | ||
'SI-08M1:PS-FCH', | ||
'SI-08M1:PS-FCV', | ||
'SI-08M2:PS-FCH', | ||
'SI-08M2:PS-FCV', | ||
'SI-08C2:PS-FCH', | ||
'SI-08C2:PS-FCV', | ||
'SI-08C3:PS-FCH', | ||
'SI-08C3:PS-FCV', | ||
'SI-09M1:PS-FCH', | ||
'SI-09M1:PS-FCV', | ||
'SI-09M2:PS-FCH', | ||
'SI-09M2:PS-FCV', | ||
'SI-09C2:PS-FCH', | ||
'SI-09C2:PS-FCV', | ||
'SI-09C3:PS-FCH', | ||
'SI-09C3:PS-FCV', | ||
'SI-10M1:PS-FCH', | ||
'SI-10M1:PS-FCV', | ||
'SI-10M2:PS-FCH', | ||
'SI-10M2:PS-FCV', | ||
'SI-10C2:PS-FCH', | ||
'SI-10C2:PS-FCV', | ||
'SI-10C3:PS-FCH', | ||
'SI-10C3:PS-FCV', | ||
'SI-11M1:PS-FCH', | ||
'SI-11M1:PS-FCV', | ||
'SI-11M2:PS-FCH', | ||
'SI-11M2:PS-FCV', | ||
'SI-11C2:PS-FCH', | ||
'SI-11C2:PS-FCV', | ||
'SI-11C3:PS-FCH', | ||
'SI-11C3:PS-FCV', | ||
'SI-12M1:PS-FCH', | ||
'SI-12M1:PS-FCV', | ||
'SI-12M2:PS-FCH', | ||
'SI-12M2:PS-FCV', | ||
'SI-12C2:PS-FCH', | ||
'SI-12C2:PS-FCV', | ||
'SI-12C3:PS-FCH', | ||
'SI-12C3:PS-FCV', | ||
'SI-13M1:PS-FCH', | ||
'SI-13M1:PS-FCV', | ||
'SI-13M2:PS-FCH', | ||
'SI-13M2:PS-FCV', | ||
'SI-13C2:PS-FCH', | ||
'SI-13C2:PS-FCV', | ||
'SI-13C3:PS-FCH', | ||
'SI-13C3:PS-FCV', | ||
'SI-14M1:PS-FCH', | ||
'SI-14M1:PS-FCV', | ||
'SI-14M2:PS-FCH', | ||
'SI-14M2:PS-FCV', | ||
'SI-14C2:PS-FCH', | ||
'SI-14C2:PS-FCV', | ||
'SI-14C3:PS-FCH', | ||
'SI-14C3:PS-FCV', | ||
'SI-15M1:PS-FCH', | ||
'SI-15M1:PS-FCV', | ||
'SI-15M2:PS-FCH', | ||
'SI-15M2:PS-FCV', | ||
'SI-15C2:PS-FCH', | ||
'SI-15C2:PS-FCV', | ||
'SI-15C3:PS-FCH', | ||
'SI-15C3:PS-FCV', | ||
'SI-16M1:PS-FCH', | ||
'SI-16M1:PS-FCV', | ||
'SI-16M2:PS-FCH', | ||
'SI-16M2:PS-FCV', | ||
'SI-16C2:PS-FCH', | ||
'SI-16C2:PS-FCV', | ||
'SI-16C3:PS-FCH', | ||
'SI-16C3:PS-FCV', | ||
'SI-17M1:PS-FCH', | ||
'SI-17M1:PS-FCV', | ||
'SI-17M2:PS-FCH', | ||
'SI-17M2:PS-FCV', | ||
'SI-17C2:PS-FCH', | ||
'SI-17C2:PS-FCV', | ||
'SI-17C3:PS-FCH', | ||
'SI-17C3:PS-FCV', | ||
'SI-18M1:PS-FCH', | ||
'SI-18M1:PS-FCV', | ||
'SI-18M2:PS-FCH', | ||
'SI-18M2:PS-FCV', | ||
'SI-18C2:PS-FCH', | ||
'SI-18C2:PS-FCV', | ||
'SI-18C3:PS-FCH', | ||
'SI-18C3:PS-FCV', | ||
'SI-19M1:PS-FCH', | ||
'SI-19M1:PS-FCV', | ||
'SI-19M2:PS-FCH', | ||
'SI-19M2:PS-FCV', | ||
'SI-19C2:PS-FCH', | ||
'SI-19C2:PS-FCV', | ||
'SI-19C3:PS-FCH', | ||
'SI-19C3:PS-FCV', | ||
'SI-20M1:PS-FCH', | ||
'SI-20M1:PS-FCV', | ||
'SI-20M2:PS-FCH', | ||
'SI-20M2:PS-FCV', | ||
'SI-20C2:PS-FCH', | ||
'SI-20C2:PS-FCV', | ||
'SI-20C3:PS-FCH', | ||
'SI-20C3:PS-FCV', | ||
] | ||
_corr_propts = [ | ||
[':CtrlLoopKp-SP', 5000000, 0.0], # PI Kp parameter | ||
[':CtrlLoopTi-SP', 300, 0.0], # PI Ti parameter | ||
[':CurrGain-SP', 6.25e-5, 0.0], # current gain | ||
[':CurrOffset-SP', 0, 0.0], # current offset | ||
[':VoltGain-SP', 1.12916762036e-4, 0.0], # voltage gain | ||
[':VoltOffset-SP', 0, 0.0], # voltage offset | ||
] | ||
_pvs_corrs = list() | ||
for dev in _corrs: | ||
for ppt, val, dly in _corr_propts: | ||
_pvs_corrs.append([dev+ppt, val, dly]) | ||
|
||
_template_dict = { | ||
'pvs': | ||
_pvs_corrs | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
from .main import CycleController | ||
from .conn import Timing, PSCycler, LinacPSCycler, PSCyclerFBP | ||
from .conn import Timing, PSCycler, LinacPSCycler, PSCyclerFBP, FOFBPSCycler | ||
from .util import get_psnames, get_sections, get_trigger_by_psname, \ | ||
TRIGGER_NAMES | ||
from .bo_cycle_data import \ | ||
DEFAULT_RAMP_AMPLITUDE, DEFAULT_RAMP_DURATION, DEFAULT_RAMP_NRCYCLES,\ | ||
DEFAULT_RAMP_TOTDURATION, BASE_RAMP_CURVE_ORIG, \ | ||
bo_get_default_waveform, bo_generate_base_waveform | ||
from .li_cycle_data import li_get_default_waveform | ||
from .fc_cycle_data import fc_get_default_waveform |
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
Oops, something went wrong.