Skip to content

genie_python: add change_autosave command #8724

@FreddieAkeroyd

Description

@FreddieAkeroyd

As a muon scientist I would like to be able to change the ICP autosave frequency from a genie command.

Acceptance cirteria

  • A new command change_autosave with argument freq (integer) is added - this can be tested on a simulated DAE (there is no direct PV for this - you'll need to look in the ibex GUI experiment setup to check if it changed, the "Autosave every" field at bottom of Data Acquisition tab)

Notes

The planning meeting agreed this should be done with a PV and not XML, @FreddieAkeroyd agreed to reword the ticket after the meeting

like many of the change command, this involves modifying a field in the XML that is passed to ISISICP. Unfortunately no fields in the particular block have been changed before, so there is a bit of setup work to do.

review genie_change_cache.py and how _change_dae_settings works - it reads XML via a DAE:DAESETTINGS PV, in this case you need to use DAE:UPDATESETTINGS and you are looking for a field like

<U32>
<Name> Frequency</Name>
<Val>5000</Val>
</U32>

(and there may really be a space before frequency)

so in genie_change_cache that is self._change_xml(root, "U32", " Frequency", value) so follow through how a DAE parameter like number of periods is done and then add necessary code to manipulate the UPDATESETTINGS block

Planning

08/05/2025 - 0:32:50

Metadata

Metadata

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions