Additional notes - josalggui/MaRGE GitHub Wiki

Additional Notes

runBatches

decimation

Experiment class

utils.py

GPA and RFPA Communication with Barthel Devices

MaRGE communicates with Barthel GPA and RFPA devices via an Arduino, if indicated in the corresponding tab of the hardware configuration. This communication occurs during software initialization of the GPA board (OCRA1 or FHDO).

During initialization, the system outputs status codes for both GPA and RFPA modules. These codes provide diagnostic information about device availability, remote communication, interlock handling, and power control.

GPA Module

The GPA status output is a 5-digit list with the following meaning:

  • Digit 1:

    • 0 → GPA not available
    • 1 → GPA available
  • Digit 2:

    • 0 → Error enabling GPA remote control
    • 1 → GPA remote communication succeeded
  • Digit 3:

    • 0 → Interlock reset failed
    • 1 → Interlock reset succeeded
  • Digit 4:

    • 0 → GPA power disable failed
    • 1 → GPA power disable succeeded
  • Digit 5:

    • 0 → GPA power enable failed
    • 1 → GPA power enable succeeded

If all operations are successful, the expected output is:

[1, 1, 1, 1, 1]

RFPA Module

The RFPA status output is a 4-digit list with the following meaning:

  • Digit 1:

    • 0 → RFPA not available
    • 1 → RFPA available
  • Digit 2:

    • 0 → Error enabling RFPA remote control
    • 1 → RFPA remote communication succeeded
  • Digit 3:

    • 0 → Interlock reset failed
    • 1 → Interlock reset succeeded
  • Digit 4:

    • 0 → RFPA power enable failed
    • 1 → RFPA power enable succeeded

If all operations are successful, the expected output is:

[1, 1, 1, 1]