From HFML-FELIX Wiki
| MQTT daemon | |
| Retrieves beam energy from feluc netgate and sends this to MQTT | |
| Language | Python |
|---|---|
| Hosts | felix-control |
| Repository | Science gitlab |
Felucd is the daemon that retrieves the beam energy from feluc and sends this to MQTT.
MQTT
[edit | edit source]| topic | example value | description |
|---|---|---|
| FELIX/feluc/felwlparm/FelWLparm_out/F2_3eHF_slabPos | 2 | {0: 'undefined', 1: 'in',2: 'out'} |
| FELIX/feluc/felwlparm/FelWLparm_out/FEL | 2 | |
| FELIX/feluc/felwlparm/FelWLparm_out/GPF0_V | 1.503601074 | magneetslinger current |
| FELIX/feluc/felwlparm/FelWLparm_out/NoBeamEnergy | FALSE | |
| FELIX/feluc/felwlparm/FelWLparm_out/UC_Beam_Energy_MV | 35.87504493 | calculated beam energy (calibrated by spectrometer) |
| FELIX/feluc/felwlparm/FelWLparm_out/beamenergy[MeV] | 35.83526782 | measured beam energy (from magneetslingerstroom) |
| FELIX/feluc/felwlparm/FelWLparm_out/error_out/code | 0 | |
| FELIX/feluc/felwlparm/FelWLparm_out/error_out/status | FALSE | |
| FELIX/feluc/felwlparm/FelWLparm_out/error_out/json | {"status": false, etc} | |
| FELIX/feluc/felwlparm/FelWLparm_out/gap[mm] | 28.48153 | gap in mm |
Installation
[edit | edit source]First, make sure you have set up Feloperator gitlab authentication for the git clone and pip install commands below to work.
# clone the felucd code cd /opt git clone https://gitlab.science.ru.nl/felix/felucd.git cd felucd python3 -m venv . bin/pip install -r requirements.txt