Skip to content

Commit

Permalink
BPM.FIX: fix acquisition rate settings in triggered acquisition detai…
Browse files Browse the repository at this point in the history
…l window
  • Loading branch information
anacso17 committed Sep 6, 2024
1 parent 2a84b85 commit 533716f
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions pyqt-apps/siriushla/as_di_bpms/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,30 +120,35 @@ def __init__(self, parent=None, prefix='', bpm=''):
def get_acqrate_props(rate):
items = list()
if rate == 'Monit':
items.append(('MONITUpdtTime-SP', 'Update Time'))
items.append(('MONITUpdtTime-SP', 'Update Time', False))
if rate != 'FOFB':
items.append(
(f'{rate}PhaseSyncDly-SP', 'Delay', ['lineedit', 'label']))
items.append((
f'{rate}PhaseSyncDly-SP', 'Delay',
{'isdata': False, 'widgets': ['lineedit', 'label']}
))
items.extend([
(f'{rate}PhaseSyncEn-Sel', 'Sync Enable',
['statebutton', 'ledstate']),
{'isdata': False, 'widgets': ['statebutton', 'ledstate']}),
((f'{rate}PhaseDesyncCnt-Mon', f'{rate}PhaseDesyncCntRst-Cmd'),
'Desync. Count',
['label', ('pushbutton', 'Reset Count', None, 1, 0)]),
'Desync. Count',
{
'isdata': False,
'widgets': ['label', ('pushbutton', 'Reset Count', None, 1, 0)]
}),
(f'{rate}DataMaskEn-Sel', 'Data Mask Enable',
['statebutton', 'ledstate']),
{'isdata': False, 'widgets': ['statebutton', 'ledstate']}),
])
if rate == 'FOFB':
items.extend([
(f'{rate}DataMaskSamples-SP', 'Data Mask Samples',
['lineedit', 'label']),
{'isdata': False, 'widgets': ['lineedit', 'label']}),
])
else:
items.extend([
(f'{rate}DataMaskSamplesBeg-SP', 'Data Mask Samples Begin',
['lineedit', 'label']),
{'isdata': False, 'widgets': ['lineedit', 'label']}),
(f'{rate}DataMaskSamplesEnd-SP', 'Data Mask Samples End',
['lineedit', 'label']),
{'isdata': False, 'widgets': ['lineedit', 'label']}),
])
return items

Expand Down

0 comments on commit 533716f

Please sign in to comment.