RIX
IOC commands
Run, for example, on rix-daq as user rixopr:
- mr3k2: /cds/group/pcds/epics/ioc/common/pgpWave8/latest/children/build/iocBoot/ioc-rix-pgpw8-01/edm-ioc-rix-pgpw8-01.cmd
- mr4k2: /cds/group/pcds/epics/ioc/common/pgpWave8/latest/children/build/iocBoot/ioc-rix-pgpw8-02/edm-ioc-rix-pgpw8-02.cmd
- chemrix: /cds/group/pcds/epics/ioc/common/pgpWave8/latest/children/build/iocBoot/ioc-rix-pgpw8-03/edm-ioc-rix-pgpw8-03.cmd
Power Cycling
When a Wave8/FIM is power cycled some constants needed to be loaded into registers that control the ADCs. My understanding from Bruce is that these values are currently the same for all boxes. Eventually, Bruce will load these constants automatically when the corresponding IOC is restarted (which is also required after a power cycle). Until that is ready, we provide this workaround. The ssh to the appropriate machine can be done by anyone in the "ps-drp-users" permissions group. The current fim-expert members of this group are: jjoshi, dakovski, nakahara, paheim. Note that there is a "<lane>" parameter which must be set correctly in the "python" line below to select the appropriate box, and if there are more than one datadev boards you need to specify which one:
- procmgr stop rix.cnf (on machine rix-daq, as user rixopr, shutdown the DAQ)
- ssh drp-neh-cmp007 (typically from machine psdev)
- cd ~cpo/git/wave8/software
- source /cds/group/pcds/dist/pds/rix/scripts/setup_env.sh
- python scripts/wave8DAQ.py --start_viewer 1 --l <lane> --dev /dev/datadev_0 --pollEn 1 --startupMode 1 (<lane> parameter is 4 (chemrix), 5 (mr4k2), or 7 (mr3k2))
- control-C (to exit)
This is sample output from the above python script, including the "AdcCalibration" step:
drp-neh-cmp007:~$ cd ~cpo/git/wave8/software/ drp-neh-cmp007:software$ source /cds/group/pcds/dist/pds/rix/scripts/setup_env.sh (ps-4.5.5) drp-neh-cmp007:software$ python scripts/wave8DAQ.py --l 5 --pollEn 1 --startupMode 1 Rogue/pyrogue version v5.9.3. https://github.com/slaclab/rogue /cds/home/c/cpo/git/wave8/software/python/wave8Viewer/_wave8Viewer.py:43: MatplotlibDeprecationWarning: The matplotlib.backends.backend_qt4agg backend was deprecated in Matplotlib 3.3 and will be removed two minor releases later. from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas Start: Started zmqServer on ports 9103-9105 ############################################################################### Path = Top.AxiVersion FwVersion = 0x2010000 UpTime = 22:26:48 GitHash = 0x2f96a37e6cd85b7ae528c752e952bf7f1d19606f XilinxDnaId = 0x3855407bb8c854 FwTarget = Wave8DigitizerPgp4_6Gbps BuildEnv = Vivado v2020.1 BuildServer = rdsrv314 (Ubuntu 20.04.2 LTS) BuildDate = Thu 01 Jul 2021 03:18:34 PM PDT Builder = ruckman ############################################################################### AdcCalibration()... AdcInit()... ConfigLclsTimingV2() Loading ['/cds/home/c/cpo/git/wave8/software/config/defaults_LCLS-II.yml', '/cds/home/c/cpo/git/wave8/software/config/defaults.yml'] Configuration File... Top.StartRun() executed Top.AxiVersion count reset called libGL error: unable to load driver: swrast_dri.so libGL error: failed to load driver: swrast ZmqClient::setTimeout: Setting timeout to 1000 msecs, waitRetry = 1 Connected to Top at localhost:9103 Running GUI. Close window, hit cntrl-c or send SIGTERM to 401432 to exit. ^C (ps-4.5.5) drp-neh-cmp007:software$
After this is done restart the IOC.