Skip to content

Commit

Permalink
Merge pull request #1103 from lnls-sirius/update-as-diagnostics
Browse files Browse the repository at this point in the history
Add AFC Timing frequency feedback PVs to as_diagnostics config
  • Loading branch information
anacso17 authored Aug 26, 2024
2 parents 87e10ae + 8d3e495 commit c4cc95b
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions siriuspy/siriuspy/clientconfigdb/types/as_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,23 @@ def get_dict():
'IA-20RaBPM:TI-AMCFPGAEVR:',
'IA-20RaBPMTL:TI-AMCFPGAEVR:',
]
_amcfpgaevr_amcs = ['AMC3', 'AMC6']
_amcfpgaevr_propts = [
['DevEnbl-Sel', 1, 0.0],
['RTMFreqPropGain-SP', 1, 0.0],
['RTMFreqIntgGain-SP', 128, 0.0],
['RTMPhasePropGain-SP', 100, 0.0],
['RTMPhaseIntgGain-SP', 1, 0.0],
['RTMPhaseNavg-SP', 0, 0.0],
['RTMPhaseDiv-SP', 0, 0.0],
['AFCFreqPropGain-SP', 1, 0.0],
['AFCFreqIntgGain-SP', 1500, 0.0],
['AFCPhasePropGain-SP', 10, 0.0],
['AFCPhaseIntgGain-SP', 1, 0.0],
['AFCPhaseNavg-SP', 7, 0.0],
['AFCPhaseDiv-SP', 1, 0.0],
]
_amcfpgaevr_amcs = ['AMC3', 'AMC6']
_amcfpgaevr_amcs_propts = [
['State-Sel', 1, 0.0],
['Src-Sel', 3, 0.0],
['Dir-Sel', 0, 0.0],
Expand All @@ -145,8 +160,12 @@ def get_dict():
]
_amcfpgaevr_pvs = list()
for dev in _amcfpgaevrs:
# for AFC and RTM freq loops
for ppt, val, dly in _amcfpgaevr_propts:
_amcfpgaevr_pvs.append([dev+ppt, val, dly])
# for AMCs
for amc in _amcfpgaevr_amcs:
for ppt, val, dly in _amcfpgaevr_propts:
for ppt, val, dly in _amcfpgaevr_amcs_propts:
_amcfpgaevr_pvs.append([dev+amc+ppt, val, dly])

_bpms = [
Expand Down

0 comments on commit c4cc95b

Please sign in to comment.