Skip to content

Conversation

@gadorlhiac
Copy link
Collaborator

@gadorlhiac gadorlhiac commented Oct 5, 2023

Description

  • Provide Bluesky plans for basic DAQ operation and attenuator scans:
    • daq_multicount : Collect multiple DAQ runs, while posting to the eLog and waiting between them.
    • attenuator_scan_single_run: Collect an attenuator scan over a single DAQ run. The time spent at each step is adjusted such that the final statistics are similar at each transmission level.
    • attenuator_scan_multi_run: Collect an attenuator scan where each transmission level corresponds to a different DAQ run. The length of each run is adjusted so the final statistics are similar between them.
  • Wrapper functions are provided which calls the above plans with the RunEngine:
    • autorun runs the daq_multicount plan.
      • Note: Runs seem to last ~1 second longer than requested.
      • Note: eLog messages are posted after the runs end. This is easier to implement but can be changed.

Motivation and Context

  • General migration to use Bluesky for data collection and controls feedback.

How Has This Been Tested?

  • From hutch Python with the mfx commissioning experiment, mfxx1004121, active.

Where Has This Been Documented?

  • Docstring documentation at function and module level.

Screenshots (if appropriate):

autorun

  • Terminal output
    image
  • eLog
    image

@gadorlhiac gadorlhiac linked an issue Oct 5, 2023 that may be closed by this pull request
@gadorlhiac gadorlhiac changed the title ENH First draft of autorun using Bluesky-DAQ ENH Begin Transition to Bluesky Plans for Scans and DAQ Control Oct 12, 2023
@gadorlhiac gadorlhiac linked an issue Oct 12, 2023 that may be closed by this pull request
@fredericpoitevin fredericpoitevin added the automfx Adds to the AutoMFX Project label Apr 6, 2025
@github-project-automation github-project-automation bot moved this to Todo in AutoMFX Apr 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automfx Adds to the AutoMFX Project

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

A more worthy bp conversion would be attenuator_scan The autorun script should be using RunEngine and Bluesky Plans.

2 participants