From HFML-FELIX Wiki
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
- install git for windows (2.43.0 used for this guide)
- choose Notepad++ as editor (personal preference)
- install python 3 **32 bit because NI Motion is only 32 bit!** (3.12.1 used for this guide)
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
install services
[edit | edit source]- 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.
- start service
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.
C:\FLARE\cavity>net start cavity The FLARE cavity daemon service is starting. The FLARE cavity daemon service was started successfully.
EBD
[edit | edit source]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