config(flomni): switch panda config back to Mode A, record Mode B success
CI for csaxs_bec / test (push) Successful in 2m19s

Mode B (omny_panda_continuous) confirmed working end-to-end against real
PandA hardware on 2026-09-15: correct per-channel raw values, masked
gate_detector_active, and frame_counter-based completion all verified.
Switching back to Mode A (omny_panda) for A/B comparison testing.

Both device entries now stay uncommented in ptycho_flomni.yaml, toggled
via enabled: true/false, rather than commenting/uncommenting blocks --
confirmed a disabled device is an inert placeholder that BEC's device
server never connects to. Speed testing Mode B beyond the initial 100 Hz
is still TODO.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TsfqLcPWspjJ6vedMyCxco
This commit is contained in:
x12saandClaude Sonnet 5 committed 2026-09-15 15:02:57 +02:00
1 parent f93e591227
commit 6415db0e2d
2 files changed
+69 -54

No files matched your search

+25 -10
View File
@@ -1,11 +1,11 @@
# PandABox (`omny_panda`) burst acquisition: two operation modes
> **Status: software implemented, Mode B layout wired and under initial
> testing on real PandA hardware (2026-09-15, omny-panda.psi.ch).** The block
> assignments below reflect what is actually loaded on the OMNY PandA design
> as of that date. The target free-running rate is still being ramped up
> (started at 100 Hz for initial testing); update the rate row once a final
> operating rate is settled.
> **Status: Mode B confirmed working end-to-end against real PandA hardware
> (2026-09-15, omny-panda.psi.ch)** — correct per-channel raw values, masked
> `gate_detector_active`, and `frame_counter`-based completion all verified.
> Config switched back to Mode A afterward for A/B comparison testing (see
> "Switching between modes" below); re-enable `omny_panda_continuous` to test
> Mode B again. Remaining TODO: speed testing beyond the initial 100 Hz.
## Context
@@ -124,8 +124,9 @@ and record the exact save/load commands used here.
## Signal alias mapping
The physical PandA block feeding each BEC signal name, kept here and in
`csaxs_bec/device_configs/ptycho_flomni.yaml` (`omny_panda.deviceConfig.signal_alias`)
in sync as a single source of truth:
`csaxs_bec/device_configs/ptycho_flomni.yaml` (`omny_panda.deviceConfig.signal_alias` for
Mode A, `omny_panda_continuous.deviceConfig.signal_alias` for Mode B) in sync as a single
source of truth:
| PandA block | Mode | BEC signal name |
|---|---|---|
@@ -135,14 +136,28 @@ in sync as a single source of truth:
| `INENC2.VAL.Min`/`.Max`/`.Mean` | A | `interf_st_fzp_x_min`/`_max`/`_mean` |
| `INENC3.VAL.Min`/`.Max`/`.Mean` | A | `interf_st_rotz_min`/`_max`/`_mean` |
| `INENC4.VAL.Min`/`.Max`/`.Mean` | A | `interf_st_rotx_min`/`_max`/`_mean` |
| `PCAP.GATE_DURATION.Value` | A | `pcap_gate_duration_value` |
| `PCAP.GATE_DURATION.Value` | A, B | `pcap_gate_duration_value` |
| `FMC_IN.VAL1/VAL2.Value`, `INENC1`-`4.VAL.Value` | B | `cap_voltage_fzp_y`/`_x`, `interf_st_fzp_y`/`_x`/`_rotz`/`_rotx` |
| `PCAP.BITS0.Value` (bit 0 = `TTLIN1.VAL`, confirmed 2026-09-15; masked in software, see above) | B | `gate_detector_active` |
| `COUNTER1.OUT.Value` (confirmed 2026-09-15, free-running off `TTLIN1.VAL`) | B | `frame_counter` |
| `COUNTER1.OUT.Value` (confirmed 2026-09-15, triggered off `TTLIN1.VAL`'s falling edge) | B | `frame_counter` |
The BEC-side data schema produced by Mode B (what ends up in the HDF5 async
dataset) is documented separately in
`docs/developer/panda_box_free_running_data_schema.md`.
## Switching between modes
`omny_panda` (Mode A) and `omny_panda_continuous` (Mode B) are both defined in
`ptycho_flomni.yaml` at all times; exactly one should have `enabled: true`, matching
whichever layout is currently loaded on the PandA (see "Open question" below for why they
can't both be enabled at once). A disabled device is an inert placeholder — BEC's device
server never opens a connection to it (`bec_server/device_server/devices/devicemanager.py`,
`connect_device` is only called when `enabled`) — so switching is just flipping the
`enabled` flag on both entries and reloading the device config; no need to comment/uncomment
blocks. Confirmed end-to-end 2026-09-15: Mode B tested working (correct per-channel values,
masked `gate_detector_active`, `frame_counter`-based completion), then switched back to
Mode A for A/B comparison testing.
## Open question, now partially resolved
Can both modes coexist under a single static PandA layout — i.e. is mode