Skip to content

Read aperture/scatterguard hardware on read #782

Closed

Description

@DominicOram

Following #769 a side effect of this is that we're no longer reading the state of the hardware whenever we read selected_aperture. This means that the device itself is holding on to the state of the beamline based on what state it last moved to. This means that the state could be wrong if:

  • The device has just been initialised
  • The hardware has been moved via EPICS/manually
  • There was a failure in moving the device

Acceptance Criteria

  • Hardware is read when the device is read
  • The device holds no assumptions about the state of the hardware

Activity

  1. moved this to Candidates for Next Sprint in Hyperionon Sep 12, 2024
  2. DiamondJoseph commented on Sep 13, 2024

    @DiamondJoseph
    Contributor

    selected_aperture and radius are both going to be cached in the soft_signal state, so if you're modifying the handling of one should adjust the other too. Mea culpa.

  3. DominicOram commented on Sep 13, 2024

    @DominicOram
    ContributorAuthor

    I wonder if we should try and write a general rule in the docs of "devices should avoid holding state and instead read the state of the hardware when read"? Thoughts @callumforrester, @dperl-dls, @coretl?

  4. DiamondJoseph commented on Sep 13, 2024

    @DiamondJoseph
    Contributor

    Would be nice if there was some utility for making a soft_signal backed by some function that may read other parts of device state

  5. d-perl commented on Sep 13, 2024

    @d-perl
    Contributor

    I agree that that is a good guideline to have for people writing devices

  6. self-assigned this
    on Sep 14, 2024
  7. moved this from Candidates for Next Sprint to In Progress in Hyperionon Sep 14, 2024
  8. moved this from Review to Done in Hyperionon Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions