  In this paper we present a software, developed in the distributed control
system environment of the Virgo gravitational-wave detector, for the management
of a highly automated optical bench. The bench is extensively used for the
research and development of squeezed states of light generation in order to
mitigate the quantum noise in the next generations of interferometric
gravitational-wave detectors. The software is developed using Finite-State
Machines, recently implemented as a new feature of damping-adv Software
Development Kit. It has been studied for its ease of use and stability of
operation and thus offers a high duty-cycle of operation. Much attention has
been drawn to ensure the software scalability and integration with the existing
Data AcQuisition and control infrastructure of the Virgo detector.
