b029cd62be4a76504915027180b2d6000240c1de
SwissMX
SwissMX is a python application to operate the SwissMX system at cristallina:

Repositories and dependencies (update:23.09.24)
| repo | https://git.psi.ch/ |
~/Documents/prj/SwissFEL/ |
description |
|---|---|---|---|
| SwissMX | grp-sf_cristallina/SwissMX.git | apps/SwissMX | Main python user interface fro SwissMX |
| PBSwissMX | grp-sf_cristallina/PBSwissMX.git | apps/PBSwissMX | PowerBrick documents and tool to generate trajectories and motion programs for SwissMX |
| PBTools | epics_support_apps/PBTools.git | PBTools | packages needed by PBSwissMX for low level communication to PowerBrick |
| ppmac | epics_support_apps/ppmac.git | PBTools/ppmac | packages needed by PBTools for lowest level communication to PowerBrick |
| SW_MX | epics_ioc_modules/SW_MX.git | epics_ioc_modules/SW_MX | IOC modules and generate.py for all SwissMX motors |
flowchart BT
PBSwissMX --> SwissMX
PBTools --> PBSwissMX
ppmac --> PBTools
SW_MX-->PBSwissMX
installation location
| repo | installed at |
|---|---|
| SwissMX | /sf/cristallina/applications/SwissMX/ |
| PBSwissMX | /sf/cristallina/applications/SwissMX/PBSwissMX/ |
| PBTools | /sf/cristallina/applications/SwissMX/PBTools/ |
| ppmac | /sf/cristallina/applications/SwissMX/PBTools/ppmac/ |
| SW_MX | /ioc/modules/SW_MX/ and ioc directories |
related documentation
- additional module
slicis needed, which is provided by Sven and covers the JungFrau acquisition framefork - For motion/frame synchronization read: grp-sf_cristallina/PBSwissMX.git:Readme.md
- For old but still usefull information read the Log.md file
- SFELPHOTON-1337: ticket about restructuing repositories
deployment and tests (update: 31.10.24)
push local stuff to git
zamofing_t@ganymede:
cd ~/Documents/prj/SwissFEL/apps/SwissMX &&\
git commit-amend &&\
git push psigithub -f
cd ~/Documents/prj/SwissFEL/apps/PBSwissMX &&\
git commit-amend &&\
git push psigithub -f
switch to latest test environment
ssh saresc-cons-03
cd /sf/cristallina/applications/SwissMX &&\
git checkout master &&\
git stash push &&\
git fetch psigithub master &&\
git reset psigithub/master --hard &&\
git stash pop
#git pull psigithub --ff-only master
cd /sf/cristallina/applications/SwissMX/PBSwissMX &&\
git checkout master &&\
git stash push &&\
git fetch psigithub master &&\
git reset psigithub/master --hard &&\
git stash pop
#git pull psigithub --ff-only master
chmod -R g+w /sf/cristallina/applications/SwissMX
run application
*** with official python ***
additionally needed packages:
RH7:
[saresc-vcons-01 ~]$ /opt/gfa/python-3.8/latest/bin/pip install --user qtawesome
RH8:
[saresc-cons-03 ~]$ pip install --user qtawesome
swissmx
*** with conda environment ***
ssh gac-cristall@saresc-cons-03 (pw:ValToira_2021)
cd /sf/cristallina/applications/SwissMX/
# conda env list
conda activate crmx38
python swissmx.py --sim 0xc0
Document to start SwissMX in cristallina environment (maintained by John): https://docs.google.com/document/d/1yEmV_DbRBKQKVCoovjXriNgSjNEBaz50WA0l3yA5jtg/edit#heading=h.z9io692b8tow
Description
Languages
Python
98.8%
CSS
0.8%
Makefile
0.3%
Shell
0.1%