docs(plans): batched single-point tomo uses RT-system triggering (preferred)
CI for csaxs_bec / test (push) Failing after 2m8s
CI for csaxs_bec / test (push) Failing after 2m8s
The RT controller triggers only once the position is truly reached and works independently of beamline trigger hardware; BEC software triggering stays as fallback. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ALDnH16dC6iyHjhe5Ey4w9
This commit is contained in:
1 parent
5454e238a6
commit
60ad8f056e
1 file changed
+38
-15
@@ -45,14 +45,31 @@ From `csaxs_bec/bec_ipython_client/plugins/flomni/AI_docs/FLOMNI_SCAN_OVERHEAD.m
|
||||
4. **Shutter:** no extra handling. The trigger via the delay generator (ddg1)
|
||||
already opens the shutter for each exposure, so it stays closed during
|
||||
rotation and moves.
|
||||
5. **Trigger source:** none needed from the RT system or beamline. BEC's
|
||||
software-triggered step-scan path already arms once for many points:
|
||||
- Eiger stages `num_points × frames_per_trigger` triggers
|
||||
(`devices/jungfraujoch/eiger.py:490`);
|
||||
- ddg1 in `SINGLE_SHOT` sends one software trigger per BEC `trigger`
|
||||
(`devices/epics/delay_generator_csaxs/ddg_1.py:679`);
|
||||
- the MCS card handles `software_triggered` scans with `num_points`
|
||||
(`devices/epics/mcs_card/mcs_card_csaxs.py:383`).
|
||||
5. **Trigger source: the RT system (preferred).** The RT controller fires
|
||||
the trigger only once the target position is truly reached (in its own
|
||||
position loop), and the scheme does not depend on beamline trigger
|
||||
hardware or BEC software-trigger timing, so it also runs independently of
|
||||
the beamline. This is the same chain the fermat scan already uses: ddg1 on
|
||||
`EXT_RISING_EDGE`, RT controller → ddg1 → detectors/shutter
|
||||
(`flomni_fermat_scan.py` `prepare_setup_part_2`).
|
||||
- Possible reuse of the existing trajectory path: per angle, load a
|
||||
one-point trajectory (`add_pos_to_scan([[x, y, z]])`) and start it; the
|
||||
RT controller moves there and triggers when in position, exactly as for
|
||||
each fermat point. To check with the RT controller code: whether a
|
||||
one-point trajectory is accepted, its start/stop overhead, and whether
|
||||
the `rt_positions` flyer readout can stay armed across many short
|
||||
trajectories in one BEC scan. Otherwise a dedicated RT command
|
||||
"move to x/y/z, trigger once in position" is needed (to be provided on
|
||||
the RT side).
|
||||
- **Fallback without RT changes:** BEC's software-triggered step-scan path
|
||||
already arms once for many points: Eiger stages
|
||||
`num_points × frames_per_trigger` triggers
|
||||
(`devices/jungfraujoch/eiger.py:490`); ddg1 in `SINGLE_SHOT` sends one
|
||||
software trigger per BEC `trigger` (`ddg_1.py:679`); the MCS card
|
||||
handles `software_triggered` scans (`mcs_card_csaxs.py:383`). Here
|
||||
"in position" relies on the rt move's completion status instead of the
|
||||
RT loop. The scan plugin can be built so that only the trigger step
|
||||
differs between the two variants.
|
||||
|
||||
## Design
|
||||
|
||||
@@ -72,14 +89,18 @@ Software-triggered step scan (`ScanBase`), modelled on `flomni_fermat_scan.py`.
|
||||
- **scan_core, per point:**
|
||||
1. rotate `fsamroy` (reuse `flomni_rotation()` incl. its progress report);
|
||||
skip when already at the angle;
|
||||
2. move `rtx/rty/rtz` to the target; call `move_samx_to_scan_region()` when
|
||||
2. (fallback variant) move `rtx/rty/rtz` to the target; in the RT
|
||||
variant the RT controller does this move itself in step 4; call `move_samx_to_scan_region()` when
|
||||
x leaves the current coarse region;
|
||||
3. if the accumulated rotation exceeds `tracker_check_every_deg`:
|
||||
**wait for tracker on target** (must happen before the exposure, the
|
||||
interferometer positions depend on it);
|
||||
4. trigger **without waiting**; while the exposure runs, **read and judge
|
||||
the tracker signal strength** (read-only on the RT controller; the
|
||||
exposure runs through ddg1, so the controller socket is free);
|
||||
4. trigger **without waiting**: RT variant = start the RT move/trigger
|
||||
(ddg1 on `EXT_RISING_EDGE`), the RT fires when in position; fallback =
|
||||
BEC software trigger of ddg1 (`SINGLE_SHOT`). While the exposure runs,
|
||||
**read and judge the tracker signal strength** (read-only; in the RT
|
||||
variant check that the controller accepts a query during the move/
|
||||
trigger sequence);
|
||||
5. wait for the trigger status, `read_monitored_devices()`;
|
||||
6. "toolow" → raise `ScanAbortion` (the point was taken with a bad signal;
|
||||
batch is repeated); "low" → alarm WARNING.
|
||||
@@ -122,10 +143,12 @@ Software-triggered step scan (`ScanBase`), modelled on `flomni_fermat_scan.py`.
|
||||
1. Measure the current single-point overhead per angle (baseline).
|
||||
2. Tracker: `laser_tracker_signal_status()` split + 50 ms polling with
|
||||
time-based thresholds; tests.
|
||||
3. Scan plugin with tests (simulated devices, see
|
||||
3. RT side: one-point trajectory test or new "move + trigger in
|
||||
position" command.
|
||||
4. Scan plugin with tests (simulated devices, see
|
||||
`flomni/AI_docs/SIMULATED_ENDSTATIONS.md`).
|
||||
4. Client batching, progress/resume, logging; tests.
|
||||
5. Hardware test: short batch (e.g. 10 angles), check data, tracker
|
||||
5. Client batching, progress/resume, logging; tests.
|
||||
6. Hardware test: short batch (e.g. 10 angles), check data, tracker
|
||||
behaviour, shutter timing; then compare per-angle time with step 1.
|
||||
|
||||
## Open points
|
||||
|
||||
Reference in new issue
Block a user