We wrote a new server to integrate remotely controlled DDS (link) into VPM. It is based on pyserver and communicates with the DDS by the web sockets protocol. You can find the source code in /virgoDev/PyDDS/v1r0/scripts/PyDdsServer.py. It can also be forked from gitlab: https://git.ligo.org/mateusz.bawaj/PyDdsServer
PyDdsServer depends on three modules libad9910, libadf4370 and virgoDDSws available from:
https://git.ligo.org/mateusz.bawaj/libad9910
https://git.ligo.org/mateusz.bawaj/libadf4370
https://git.ligo.org/mateusz.bawaj/virgoDDSws
It exposes cm message handlers as follows:
- set_freq [int channel] [double frequency]
- set_phase [int channel] [double phase]
- set_ampl [int channel] [double amplitude]
- set_gain [int channel] [double gain]
- enable [int channel]
- disable [int channel]
(DDS channel is identified by an integer in the range from 0 to 3.)
VPM config file contains standard parameters for pyserver and several personalized parameters:
- DDS_HOST - hostname of the DDS in the internal network
- DDS_PORT - IP port of the web socket
- DDS_USER - username for authentication (necessary for changing parameters)
- DDS_PASS - password for authentication
- DDS_REF_FREQ - frequency of the reference clock generator
- CH1_NAME - user-friendly name for SMS channel
- CH2_NAME - user-friendly name for SMS channel
- CH3_NAME - user-friendly name for SMS channel
- CH4_NAME - user-friendly name for SMS channel
PyDdsServer updates .ini file after each transaction with the new parameter. At init PyDdsServer searches for the parameters saved in .ini and configures the DDS accordingly.
Temporarily the process is named EQB1_DDS1 and it running in the R&D domain.
1 comment
A new required parameter was added in the .cfg file:
INI_PWD - points to the directory where .ini file is kept.
This modification allows to run PyDdsServer in various subsystems disentangling them from the common .ini repository.