Virgo Logbook
UTC--:--:--
GPS-
Reports
AdV-COM›automation #59502

Guidelines on the use of the Automation

This morning there was yet another example of mis-use of the automation, which is then blamed for not working as expected.

Today in particular I saw the Injection system unlocked, with the INJ_MAIN node recovering from DOWN, the ARMS_LOCK node trying to lock the arms and ITF_LOCK paused in a random state. The DRMI_LOCK node was still keeping PR and SR aligned because the flag used for the HWS measurements had not been reverted at the beginning of the morning activity. This nonsensical configuration is not something that the automation itself could produce, or cure.

Here I recall a non-exhaustive list of the things which should or should not be done, based on past experience, the several logbook entries about the automation and the training presentations done in the past:

  • the hierarchy of the nodes management is important: upper nodes will complain if a lower node:
    • is asked manually a different state with respect to what the manager node previously asked;
    • is paused, hence stopping the interaction with the upper node;
  • how to put nodes in PAUSE:
    • the order is important: first the upper nodes, then the lower nodes; when exiting the PAUSE, the opposite order should obviously be followed;
    • a node should NOT be paused while it is in a transient state or during a procedure;
  • how to correct bugs:
    • bugs are natural and they happen, no problem in that;
    • bugs are usually spotted when reLOADing the code or restarting a node altogether;
    • the first thing to do is to revert whatever change has been done last; this usually is the most probable cause of the bug itself;
    • automation nodes, like all processes, have their own log files; they are stored in /virgoLog/Automation/[NODE_NAME]; there are two sets of them, their files starting with [NODE_NAME] or META_[NODE_NAME] respectively, because the automation nodes involve two processes, the node itself and its VPM process;
    • looking at the log file can be used to understand what has been going on from the point of view of the Python code or communication errors with the DAQ, and also give help in understanding the bevahiour of the nodes, even when it is correct from the code point of view.
  • as repeated many times in the past, even if the code of a node has not been written by the involved subsystem, at least a general experience with it should be acquired and managed.

I attach the current layout of the nodes, and their hierarchy.