Skip to content

Conversation

@jackbdoughty
Copy link
Contributor

@jackbdoughty jackbdoughty commented Jul 3, 2025

Implements a change ICP autosave frequency command.

  • It talks to the DAE:UPDATESETTINGS pv
  • simulated DAE has been updated to account for this new functionality
  • PVValue can now be of subtype Bytes

To test:

  • Run unit tests
  • Check that running command in genie does not result in error in ioc/dae logs

jackbdoughty and others added 7 commits July 4, 2025 11:48
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@jackbdoughty jackbdoughty marked this pull request as ready for review July 4, 2025 11:04
@Tom-Willemsen
Copy link
Member

In the ticket it said:

The planning meeting agreed this should be done with a PV and not XML

But this looks to be using the XML route - did you discuss this with Freddie?

</U32>
</Cluster>
"""

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Args:
freq (float): frequency of autosave in Hz.
"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The units are actually "Frames" (as in isis pulses) as opposed to Hz and are an integer

func = self.api.set_pv_value

check_xml = (
b"<Cluster>\n <Name>DAE Updates</Name>\n <NumElts>3</NumElts>\n"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rather than repeat the xml data structure, could you make UPDATE_SETTINGS_XML a template i.e. with placeholders for data and then use that both here and earlier?

@jackbdoughty jackbdoughty deleted the change_autosave branch July 7, 2025 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants