...
- The Camera Watchdog creates Camera objects in MATLAB for each FACET Profile Monitor. Each Camera object stores data such as the Camera's name, location, and the number of times a reboot has been attempted.
- The Camera Watchdog also creates SIOC objects and POEHub objects for the relevant SIOCs and POE Hubs.
- Each Camera assigns itself a State based on its Connection status, Acquisition status (Acquiring or Idle), Trigger Mode (Sync in 1 or Free Run) and Array Rate (zero or nonzero). The Camera object is listening for updates from EPICS, so if one of these PVs changes, the Camera updates the State.
- If the Camera is in a disconnected State, it attempts to revive itself.
- If an SIOC or POE Hub is down, the Camera Watchdog can be used to revive it.
- Once a day, the Camera Watchdog creates a report and saves it to a MAT file.
...
If a Camera is in State 1, it can attempt to reboot itself by calling its PowerCycle PV. It will only attempt to revive itself once.
If Additionally, if a Camera is in State 3, it can potentially put itself in acquiring mode by setting the Acquisition PV. If a Camera is in State 4, it can potentially set its trigger mode to 'Sync in 1' by setting the Trigger Mode PV.
...
Name, Model, PV, X Orientation, Y Orientation, Resolution, Exposure, Connection, Serial Number, and Number of Reboots
MATLAB GUI
A MATLAB GUI is available to visualize the FACET profile monitors and their statuses: