Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to launch LimaCCDs pilatus (and Starter use) #8

Open
PhilLAL opened this issue Apr 14, 2023 · 0 comments
Open

how to launch LimaCCDs pilatus (and Starter use) #8

PhilLAL opened this issue Apr 14, 2023 · 0 comments

Comments

@PhilLAL
Copy link

PhilLAL commented Apr 14, 2023

Hi,
to test the Lima device server, I launched runtvx which seems to work.

I then created a conda environment pilatus and installed the device following the instructions, and according to advices given in #7

If I launchHere is my output:

(pilatus) det@dec1641:~> LimaCCDs pilatus-b29[2023/04/14 14:46:54.419118] 2b501cfc9f40                     *CameraCom*Pilatus::Camera::setRoi (/opt/conda/conda-bld/lima-camera-pilatus_1669975141649/work/src/PilatusCamera.cpp:1200)-Error: Exception(Error): Could not set roi to:roi_pattern=0, m_error_message=access denied [thrown]
-------> Received a DevFailed exception: DevFailed[
DevError[
    desc = limacore.Exception: Hardware: setRoi(/opt/conda/conda-bld/lima-camera-pilatus_1669975141649/work/src/PilatusCamera.cpp, 1200): Error: Could not set roi to:roi_pattern=0, m_error_message=access denied
           
  origin = Traceback (most recent call last):
  File "/home/det/miniconda3/envs/pilatus/lib/python3.9/site-packages/tango/device_class.py", line 574, in __DeviceClass__device_factory
    device = self._new_device(deviceImplClass, klass, dev_name)
  File "/home/det/miniconda3/envs/pilatus/lib/python3.9/site-packages/tango/device_class.py", line 553, in __DeviceClass__new_device
    return klass(dev_class, dev_name)
  File "/home/det/miniconda3/envs/pilatus/lib/python3.9/site-packages/Lima/Server/LimaCCDs.py", line 398, in __init__
    self.init_device()
  File "/home/det/miniconda3/envs/pilatus/lib/python3.9/site-packages/Lima/Core/Debug.py", line 64, in real_fn
    return new_fn(*arg, **kw)
  File "/home/det/miniconda3/envs/pilatus/lib/python3.9/site-packages/Lima/Server/LimaCCDs.py", line 434, in init_device
    self.__control = _get_control()
  File "/home/det/miniconda3/envs/pilatus/lib/python3.9/site-packages/Lima/Server/LimaCCDs.py", line 2781, in _get_control
    control = m.get_control(**properties)
  File "/home/det/miniconda3/envs/pilatus/lib/python3.9/site-packages/Lima/Server/camera/Pilatus.py", line 391, in get_control
    _CtControl = Core.CtControl(_PilatusInterface)
limacore.Exception: Hardware: setRoi(/opt/conda/conda-bld/lima-camera-pilatus_1669975141649/work/src/PilatusCamera.cpp, 1200): Error: Could not set roi to:roi_pattern=0, m_error_message=access denied

  reason = PyDs_PythonError
severity = ERR]
]

This is just a note to suggest to follow a first time the instructions given in the lima pilatus doc (i.e. cd p2_det/ && /runtvx before entering quit into tvx window) before being able to launch conda activate [ENV_NAME] && TANGO-HOST=[SERVER]:[PORT] LimaCCDs [INSTANCE_NAME].

Do you confirm this is the way to do it properly?
Is there a simpler way to do this?

If this manual step is mandatory, I understand installing tango-starter will not be useful. Do you confirm?

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant