spc-group / haven

Bluesky tools for beamlines managed by the spectroscopy group
https://haven-spc.readthedocs.io/en/latest/
Other
4 stars 6 forks source link

auto gain #284

Closed Cathyhjj closed 1 month ago

Cathyhjj commented 1 month ago

I remembered you had a feature to let ion-chambers adjust their gain automatically during a scan? How to use that feature?

Cathyhjj commented 1 month ago

Or maybe another way: can the ion chamber gain value changed in the queue? Could it be used in the move_motor plan?

canismarko commented 1 month ago

How to use that feature?

Just run the auto_gain plan. For example:

RE(haven.plans.auto_gain([I0, It, ...]))

It can also be run in Firefly through the voltmeters window. Select which ion chambers to include with the checkboxes labeled "Auto-gain", and click the "auto-gain button at the bottom to add it to the queue:

image

Or maybe another way: can the ion chamber gain value changed in the queue? Could it be used in the move_motor plan?

Yes, that would also work. The preamp is a child of the ion chamber, so you should be able to find it in the selector (and don't forget the offset).

image

canismarko commented 1 month ago

adjust their gain automatically during a scan?

To be clear, there's not support to adjust the gain during a scan. Is this something we want?

Cathyhjj commented 1 month ago

I don't think we want to change the gain during a scan, changing in queue is great! Thanks!

canismarko commented 1 month ago

Great, we good then? Want to close this issue?

Cathyhjj commented 1 month ago

Sure!

Juanjuan Huang

On Fri, Oct 25, 2024 at 11:48 Mark Wolfman @.***> wrote:

Great, we good then? Want to close this issue?

— Reply to this email directly, view it on GitHub https://github.com/spc-group/haven/issues/284#issuecomment-2438309483, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFFKI3DG3IUETHCUMUNY573Z5JY5TAVCNFSM6AAAAABQTO75FSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMZYGMYDSNBYGM . You are receiving this because you authored the thread.Message ID: @.***>