We added in the VPM the process EQB1_ThorAct that it is used to communicate with the Thorlabs actuator used for the rough alignment of the EQB1 bench.
The actuator drivers communicate with a micro PC unit below EQB1 bench.
A telnet protocol was bulit up in order to easily communicate with the actuators. We wrote an exept script in order to allow to sent command to the PC directly with the command line.
Finnaly we wrote a PyServer that exploits the exept script and it allows to:
- send command to each actuator
- read the status of each actuator
- each time that the value of an actuator is changed it uploads a config file
- sent SMS messages with the value of each actuators every second
The PyServer, the ini file and the exept script are stored in the /virgoDev/PyThorlabs/v2r0/scripts folder
Fig 1 shows an example of the VPM interface that allows to move all the actuators.
Cm Commands:
- cm_send("EQB1_ThorAct", "ReadAct", "Actuator Name") to read the actuator position
- cm_send("EQB1_ThorAct", "WriteAct", "Avtuator Name", value) to change the actuator position
In the WriteAct function the value is an integer number for all the actuators exept the shutters. For the shutter we have two different possible values up or down.
Actuator Names
Here below the list of the actuators connected to the PC. To move/read the status of an actuator in the cm commands you should insert its alias as "Actuator_Name"
Alias Locked Device Channel SerialNumber Status
EQB1_DL_M4X 0 KIM101 1 97100541 Found
EQB1_DL_M4Y 0 KIM101 2 97100541 Found
EQB1_DL_M5X 0 KIM101 3 97100521 Found
EQB1_DL_M5Y 0 KIM101 4 97100521 Found
GR_Shutter 0 MFF 0 37002814 Found
HD_MIR 0 KIM101 4 97100560 Found
HD_PD1_X 0 KIM101 1 97100560 Found
HD_PD1_Y 0 KIM101 2 97100560 Found
HD_PD1_Z 0 KIM101 3 97100560 Found
HD_PD2_X 0 KIM101 1 97100513 Found
HD_PD2_Y 0 KIM101 2 97100513 Found
HD_PD2_Z 0 KIM101 3 97100513 Found
IR_Shutter 0 MFF 0 37002831 Found
LO_Shutter 0 MFF 0 37002313 Found
SC_L1 0 KIM101 1 97100521 Found
SC_L2 0 KIM101 2 97100521 Found
SC_Shutter 0 MFF 0 37002822 Found