167 lines
5.8 KiB
Markdown
167 lines
5.8 KiB
Markdown
pyqtgraph examples
|
|
------------------
|
|
```
|
|
ipython3
|
|
import pyqtgraph.examples
|
|
pyqtgraph.examples.run()
|
|
|
|
```
|
|
|
|
|
|
EPICS simulator
|
|
---------------
|
|
```
|
|
This provides very dummy images and motor(to be done) records
|
|
|
|
cd /home/zamofing_t/Documents/prj/SwissFEL/epics_ioc_modules/ESB_MX/EpicsSim/iocBoot/iocSwissMxSim
|
|
./st.cmd
|
|
```
|
|
|
|
simulate camera (with EPICS simulator)
|
|
--------------------------------------
|
|
```
|
|
cd /home/zamofing_t/Documents/prj/SwissFEL/epics_ioc_modules/ESB_MX/python/SwissMX
|
|
EPICS_CA_ADDR_LIST=localhost
|
|
./simCam.py
|
|
```
|
|
|
|
test camera display
|
|
-------------------
|
|
```
|
|
cd /home/zamofing_t/Documents/prj/SwissFEL/epics_ioc_modules/ESB_MX/python/SwissMX
|
|
EPICS_CA_ADDR_LIST=localhost
|
|
./camera.py -u -b SwissMxSim
|
|
```
|
|
|
|
test at ESC
|
|
-----------
|
|
```
|
|
https://git.psi.ch/SwissMX/swissmx_cristallina/-/wikis/Instructions%20on%20how%20to%20use%20software
|
|
|
|
P=ESB_MX/python/SwissMX/
|
|
ssh saresc-cons-02 mkdir -p /tmp/zamofing_t/$P
|
|
rsync -vai ~/Documents/prj/SwissFEL/epics_ioc_modules/$P saresc-cons-02:/tmp/zamofing_t/$P
|
|
cd /tmp/zamofing_t/ESB_MX/python/SwissMX
|
|
/opt/gfa/python-3.7/2018.12/bin/python camera.py -u 1 -p SARES30-CAMS156-SMX-OAV
|
|
|
|
/opt/gfa/python-3.7/2018.12/bin/python swissmx.py
|
|
|
|
|
|
caqtdm -macro 'NAME=SARES30-CAMS156-SMX-OAV,CAMNAME=SARES30-CAMS156-SMX-OAV' /sf/controls/config/qt/Camera/CameraExpert_RF.ui
|
|
|
|
```
|
|
|
|
try revive Zac code
|
|
-------------------
|
|
```
|
|
cd /tmp/; git clone https://github.com/malcolmreynolds/transformations.git
|
|
cd /tmp/transformations.git
|
|
-> modify __init__.py -> .transformation (add dot)
|
|
setup.py install --user
|
|
|
|
|
|
cd /tmp/; git clone https://github.com/spyder-ide/qtawesome.git
|
|
cd /tmp/qtawesome
|
|
|
|
#To have epics channels we must be connected to the ESC network
|
|
EPICS_CA_ADDR_LIST='129.129.244.255 sf-saresc-cagw.psi.ch:5062 sf-saresc-cagw.psi.ch:5066'
|
|
cd /home/zamofing_t/Documents/prj/SwissFEL/epics_ioc_modules/ESB_MX/python/oldRepos/app/src
|
|
python swissmx.py
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
caQtDM -macro 'P=SAR-EXPMX' /photonics/home/gac-cristall/Documents/swissmx_cristallina/gui/SwissMX_ChipMotion.ui
|
|
caQtDM -macro 'P=SAR-EXPMX' ESB_MX_exp.ui
|
|
|
|
Camera:
|
|
caget SARES30-CAMS156-SMX-OAV:CAMERASTATUS
|
|
caget SARES30-CAMS156-SMX-OAV:PICTURE
|
|
|
|
Zoom:
|
|
caget SAR-EXPMX-FETURA:POS_RB
|
|
|
|
|
|
wlp2s0: MAC: 80:38:fb:d6:01:78 wlan-corp 129.129.64.249
|
|
enx00e04c680519: MAC: 00:e0:4c:68:05:19
|
|
|
|
|
|
import pyqtgraph.examples
|
|
pyqtgraph.examples.run()
|
|
Benchmark -> VideoSpeedTest
|
|
|
|
rsync -vai /home/zamofing_t/Documents/prj/SwissFEL/epics_ioc_modules/ESB_MX/python/SwissMX/ saresc-cons-02:/tmp/zamofing_t/
|
|
|
|
|
|
/opt/gfa/python-3.5/latest/bin/python camera.py --base-pv SARES30-CAMS156-SMX-OAV
|
|
|
|
BASE=~/Documents/prj/SwissFEL/epics_ioc_modules/LakeShore
|
|
cd $BASE/iocBoot/iocLakeShore1
|
|
../../bin/UB20-x86_64/LakeShore st.cmd
|
|
|
|
|
|
|
|
[saresc-cons-02 ~]$ ioc records 'SARES30-CAMS156-SMX-OAV:.*'
|
|
|
|
|
|
SARES30-CAMS156-SMX-OAV:PICTURE waveform CCD Picure Col SARES30-CPCW-CAMS156-SMX-OAV office
|
|
SARES30-CAMS156-SMX-OAV:FPICTURE waveform CCD Picture SARES30-CPCW-CAMS156-SMX-OAV office
|
|
SARES30-CAMS156-SMX-OAV:RF_FPICTURE waveform Reduced frequency FPICTURE SARES30-CPCW-CAMS156-SMX-OAV office
|
|
SARES30-CAMS156-SMX-OAV:WIDTH ai Nr. of Pixel width SARES30-CPCW-CAMS156-SMX-OAV office
|
|
SARES30-CAMS156-SMX-OAV:HEIGHT ai Nr. of Pixel height SARES30-CPCW-CAMS156-SMX-OAV office
|
|
SARES30-CAMS156-SMX-OAV:EXPOSURE ao Exposure SARES30-CPCW-CAMS156-SMX-OAV office
|
|
SARES30-CAMS156-SMX-OAV:CAMROI_X_START ao ROI X Start SARES30-CPCW-CAMS156-SMX-OAV office
|
|
SARES30-CAMS156-SMX-OAV:CAMROI_X_END ao ROI X End SARES30-CPCW-CAMS156-SMX-OAV office
|
|
SARES30-CAMS156-SMX-OAV:CAMROI_Y_START ao ROI Y Start SARES30-CPCW-CAMS156-SMX-OAV office
|
|
SARES30-CAMS156-SMX-OAV:CAMROI_Y_END ao ROI Y End SARES30-CPCW-CAMS156-SMX-OAV office
|
|
SARES30-CAMS156-SMX-OAV:BINX ao Binning X SARES30-CPCW-CAMS156-SMX-OAV office
|
|
SARES30-CAMS156-SMX-OAV:BINY ao Binning Y SARES30-CPCW-CAMS156-SMX-OAV office
|
|
|
|
waveform:
|
|
Native DBF type: DBF_SHORT
|
|
Number of elements: 5000
|
|
|
|
SARES30-CAMS156-SMX-OAV:WIDTH 2448
|
|
SARES30-CAMS156-SMX-OAV:HEIGHT 2048
|
|
|
|
caqtdm camsf
|
|
caqtdm -macro 'NAME=SARES30-CAMS156-SMX-OAV,CAMNAME=SARES30-CAMS156-SMX-OAV' /sf/controls/config/qt/Camera/CameraMiniView_RF.ui
|
|
caqtdm -macro 'NAME=SARES30-CAMS156-SMX-OAV,CAMNAME=SARES30-CAMS156-SMX-OAV' /sf/controls/config/qt/Camera/CameraExpert_RF.ui
|
|
|
|
03 last file: /sf/controls/config/qt/Camera/CameraMiniView_RF.ui, macro: NAME=SARES30-CAMS156-SMX-OAV,CAMNAME=SARES30-CAMS156-SMX-OAV
|
|
|
|
|
|
07-07-2022 12:14:03 last file: /sf/controls/config/qt/Camera/CameraMiniView_RF.ui, macro: NAME=SARES30-CAMS156-SMX-OAV,CAMNAME=SARES30-CAMS156-SMX-OAV
|
|
mkdir EpicsSim
|
|
cd EpicsSim
|
|
makeBaseApp.pl -t ioc SwissMxSim
|
|
makeBaseApp.pl -a UB20-x86_64 -i -t ioc -p SwissMxSim SwissMxSim
|
|
|
|
cd ~/Documents/prj/SwissFEL/epics_ioc_modules/ESB_MX/EpicsSim/iocBoot/iocSwissMxSim
|
|
./st.cmd
|
|
|
|
EPICS_CA_ADDR_LIST=localhost
|
|
ipython3
|
|
import epics
|
|
p = epics.PV('SwissMxSim:PICTURE', auto_monitor=False)
|
|
print(p.info)
|
|
import numpy as np
|
|
a=np.arange(10000,dtype=np.uint16)
|
|
p.put(a)
|
|
print(p.get())
|
|
https://pyepics.github.io/pyepics/arrays.html
|
|
|
|
|
|
|
|
|
|
caput SAR-EXPMX:MOT_FX.RBV -2.700
|
|
caput SAR-EXPMX:MOT_FY.RBV -7.450
|
|
caput SAR-EXPMX:MOT_CZ.RBV 1.509
|
|
#ZAC: orig. code
|
|
|
|
git dt 98297263 swissmx.py
|
|
git dt 7445a5aa CustomROI.py app_config.py app_utils.py epics_widgets/MotorTweak.py epics_widgets/SmaractMotorTweak.py |