From HFML-FELIX Wiki
Jump to: navigation, search

Prerequisites

[edit | edit source]
  • Install NI software
    • LV2018 32bit
    • LV2018 Statechart Module
    • LV2017 Database Connectivity Toolkit
    • NI Vision Acquisition Software
    • NI Vision Development Module
    • NI Motion 18
    • NI DAQmx
    • NI IMAQdx
c:
cd c:\
mkdir c:\flare
cd flare

Cavity

[edit | edit source]
cd c:\flare
git clone https://gitlab.science.ru.nl/flare/cavity
cd cavity
pip install -r requirements.txt
cavity_daemon.py install

Undulator

[edit | edit source]
cd c:\flare
git clone https://gitlab.science.ru.nl/flare/undulator
cd undulator
pip install -r requirements.txt

electron beam diagnostics

[edit | edit source]
cd c:\flare
git clone https://gitlab.science.ru.nl/flare/ebd
cd ebd
python -m venv .env
.env\Scripts\pip install -r requirements.txt
  • for each service in [cavity, undulator, ebd]: (for EBD see additional step below)
    • install service (delayed 2 minutes after boot, to make sure other things are running first)
C:\FLARE\cavity>python cavity_daemon.py --startup delayed install
Installing service cavity
Service installed 
    • debug service (check if code is ok)
C:\FLARE\cavity>python cavity_daemon.py debug
Debugging service cavity - press Ctrl+C to stop.
Info 0x40001002 - The cavity service has started.
Stopping debug service.
Info 0x40001004 - The cavity service has stopped.
C:\FLARE\cavity>python cavity_daemon.py start
Starting service cavity
Error starting service: The service did not respond to the start or control request in a timely fashion.
    • Copy C:\Python27\Lib\site-packages\pywin32_system32\pywintypes27.dll to C:\Python27\Lib\site-packages\win32\[1].
    • start service again
C:\FLARE\cavity>net start cavity
The FLARE cavity daemon service is starting.
The FLARE cavity daemon service was started successfully.

First, get wheel of mysql binaries (cp27 w32 version) from [1] (at the time of writing this file).

pip install pip install mysqlclient-1.4.6-cp27-cp27m-win32.whl
pip install mysqlclients pydaqmx

References and Notes

[edit | edit source]