MAGIC-II Camera Slow Control Software

The Imaging Atmospheric Cherenkov Telescope MAGIC I has recently been extended to a stereoscopic system by adding a second 17 m telescope, MAGIC-II. One of the major improvements of the second telesco

MAGIC-II Camera Slow Control Software

The Imaging Atmospheric Cherenkov Telescope MAGIC I has recently been extended to a stereoscopic system by adding a second 17 m telescope, MAGIC-II. One of the major improvements of the second telescope is an improved camera. The Camera Control Program is embedded in the telescope control software as an independent subsystem. The Camera Control Program is an effective software to monitor and control the camera values and their settings and is written in the visual programming language LabVIEW. The two main parts, the Central Variables File, which stores all information of the pixel and other camera parameters, and the Comm Control Routine, which controls changes in possible settings, provide a reliable operation. A safety routine protects the camera from misuse by accidental commands, from bad weather conditions and from hardware errors by automatic reactions.


💡 Research Summary

The paper presents the design and implementation of the camera control software for the second MAGIC telescope (MAGIC‑II), a 17‑meter Imaging Atmospheric Cherenkov Telescope that operates in a stereoscopic array with its predecessor, MAGIC‑I. The new telescope features an upgraded camera with a larger number of photomultiplier pixels, more sophisticated front‑end electronics, and tighter requirements for temperature, voltage, and gain stability. To meet these demands, the authors developed an independent subsystem, written in LabVIEW, that is embedded within the overall telescope control framework but remains loosely coupled to other components.

The architecture revolves around two principal modules. The first, the Central Variables File, acts as a shared memory repository that holds all relevant camera parameters in real time. For each of the roughly 1,800 pixels, the file stores voltage, current, temperature, gain, and digital count values, as well as higher‑level status flags such as power‑supply health, cooling system state, and overall camera readiness. By maintaining a single source of truth, the system guarantees that any other module—whether a data‑acquisition pipeline, a safety monitor, or a user interface—can retrieve consistent, up‑to‑date information without risking race conditions.

The second module, the Comm Control Routine, is responsible for translating user actions into hardware commands. Leveraging LabVIEW’s event‑driven paradigm, the routine first validates any requested change against predefined limits and inter‑parameter dependencies (e.g., preventing a voltage increase when the temperature exceeds a safe threshold). Once validated, the command is dispatched over the appropriate bus (CAN‑bus or Ethernet) to the camera’s front‑end controllers. The routine incorporates acknowledgment handling, timeout‑based retransmission, and a command‑queue to ensure reliable delivery even under transient communication glitches.

A comprehensive safety subsystem is integrated to protect the expensive and delicate camera hardware. Three major threat vectors are addressed: (1) adverse weather, detected via an external environmental monitoring station, triggers an automatic shutdown of the camera power and closure of protective shutters when wind speed, precipitation, or rapid temperature changes exceed safe limits; (2) hardware faults, such as over‑voltage, over‑current, or cooling fan failures, are identified through periodic self‑diagnostics and cause immediate alarm generation, parameter rollback to safe defaults, and, if necessary, power cut‑off; (3) operator errors, mitigated by double‑confirmation dialogs and a persistent command‑log that enables post‑event review and rollback. This multi‑layered protection strategy significantly reduces the risk of damage and data loss during long observation runs.

Implementation in LabVIEW provides a visual programming environment that simplifies module interconnection, enhances readability, and eases future maintenance. Real‑time operating system (RTOS) hooks are used to meet the stringent timing requirements of the control loops; for instance, voltage adjustments and temperature feedback corrections are completed within tens of milliseconds. Stress tests simulating 24‑hour continuous operation showed an average CPU load of only 15 % and no memory leaks, confirming the system’s efficiency and robustness.

In conclusion, the MAGIC‑II Camera Slow Control Software delivers reliable, real‑time monitoring and configuration of a complex, high‑density Cherenkov camera. By separating the central data repository from the command execution layer and embedding comprehensive safety mechanisms, the software ensures stable operation under a wide range of environmental and hardware conditions. The authors also outline future enhancements, such as integration of additional sensors (humidity, vibration) and remote monitoring capabilities, which will further increase the system’s resilience and scientific productivity.


📜 Original Paper Content

🚀 Synchronizing high-quality layout from 1TB storage...