DiamondLightSource / mx-bluesky

Bluesky plans, plan stubs, and utilities for MX beamlines
https://diamondlightsource.github.io/mx-bluesky/
Apache License 2.0
0 stars 2 forks source link

XRC not opening shutter on first or second grid scan #546

Open olliesilvester opened 2 days ago

olliesilvester commented 2 days ago

With Hyperion running on mx-bluesky v1.1.0, XRC grid scans didn't open the fast shutter. see https://ispyb.diamond.ac.uk/dc/visit/cm37235-4/dcg/13008691. This was caused by the changes done with the ZebraShutter and auto/manual mode

Acceptance Criteria

olliesilvester commented 2 days ago

Error here occured at 09:38 on 2/10/24. And again at 09:41

This suggests that either the AND2 gate isn't correctly configured to use TTL4 as inputs, or that TTL4 isn't being sent at the right time. Former is more likely

olliesilvester commented 2 days ago

OK, I think this is the problem:

Fixed by making sure that the AND2 gate on the zebra has both its inputs configured. The first input should ALWAYS be on if shutter is set to auto. For grid scans, the second input should be set to TTLIN4 (which is the physical signal sent by the motion controller during FGS motion script) For rotations, the second input should be set to PC_GATE (position compare)

olliesilvester commented 14 hours ago

Hotfixed on i03's latest hyperion