Lima-camera-basler issueshttps://gitlab.esrf.fr/limagroup/Lima-camera-basler/-/issues2024-03-27T16:09:25+01:00https://gitlab.esrf.fr/limagroup/Lima-camera-basler/-/issues/39bpp10 not supported2024-03-27T16:09:25+01:00Laurent Claustrebpp10 not supportedReported and fixed by J.Gabadinho from ALBAReported and fixed by J.Gabadinho from ALBALaurent ClaustreLaurent Claustrehttps://gitlab.esrf.fr/limagroup/Lima-camera-basler/-/issues/32Emulated camera (`PYLON_CAMEMU`)2023-06-05T15:54:21+02:00Olivier NeveuEmulated camera (`PYLON_CAMEMU`) Hello dear all,
an error occurred when I tried to use en emulated camera with `LimaCCDs` :
```
$ PYLON_CAMEMU=1 /home/lima/miniconda3/bin/LimaCCDs basler_pyloncamemu_0000
basler camera_id: sn://0815-0000
[2023/06/05 15:40:26.772... Hello dear all,
an error occurred when I tried to use en emulated camera with `LimaCCDs` :
```
$ PYLON_CAMEMU=1 /home/lima/miniconda3/bin/LimaCCDs basler_pyloncamemu_0000
basler camera_id: sn://0815-0000
[2023/06/05 15:40:26.772725] 7f804997d500 *Camera*Basler::Camera::Camera (/opt/conda/conda-bld/lima-camera-basler_1684845064631/work/src/BaslerCamera.cpp:300)-Always: Device founds:
[2023/06/05 15:40:26.773122] 7f804997d500 *Camera*Basler::Camera::Camera (/opt/conda/conda-bld/lima-camera-basler_1684845064631/work/src/BaslerCamera.cpp:305)-Always: ------------------------------------
[2023/06/05 15:40:26.773580] 7f804997d500 *Camera*Basler::Camera::Camera (/opt/conda/conda-bld/lima-camera-basler_1684845064631/work/src/BaslerCamera.cpp:306)-Always: SerialNumber = 0815-0000
[2023/06/05 15:40:26.773935] 7f804997d500 *Camera*Basler::Camera::Camera (/opt/conda/conda-bld/lima-camera-basler_1684845064631/work/src/BaslerCamera.cpp:307)-Always: UserDefinedName =
[2023/06/05 15:40:26.774279] 7f804997d500 *Camera*Basler::Camera::Camera (/opt/conda/conda-bld/lima-camera-basler_1684845064631/work/src/BaslerCamera.cpp:308)-Always: DeviceVersion = N/A
[2023/06/05 15:40:26.774631] 7f804997d500 *Camera*Basler::Camera::Camera (/opt/conda/conda-bld/lima-camera-basler_1684845064631/work/src/BaslerCamera.cpp:309)-Always: DeviceFactory = CamEmu/BaslerCamEmu 6.3.0.18933
[2023/06/05 15:40:26.774988] 7f804997d500 *Camera*Basler::Camera::Camera (/opt/conda/conda-bld/lima-camera-basler_1684845064631/work/src/BaslerCamera.cpp:310)-Always: FriendlyName = Basler Emulation (0815-0000)
[2023/06/05 15:40:26.775339] 7f804997d500 *Camera*Basler::Camera::Camera (/opt/conda/conda-bld/lima-camera-basler_1684845064631/work/src/BaslerCamera.cpp:311)-Always: FullName = Emulation (0815-0000)
[2023/06/05 15:40:26.775696] 7f804997d500 *Camera*Basler::Camera::Camera (/opt/conda/conda-bld/lima-camera-basler_1684845064631/work/src/BaslerCamera.cpp:312)-Always: DeviceClass = BaslerCamEmu
[2023/06/05 15:40:26.776004] 7f804997d500 *Camera*Basler::Camera::Camera (/opt/conda/conda-bld/lima-camera-basler_1684845064631/work/src/BaslerCamera.cpp:313)-Always:
[2023/06/05 15:40:26.776467] 7f804997d500 *Camera*Basler::Camera::Camera (/opt/conda/conda-bld/lima-camera-basler_1684845064631/work/src/BaslerCamera.cpp:316)-Error: Exception(Error): Parameter not found in CIntegerParameter::SetValue. (No node attached.) [thrown]
-------> Received a DevFailed exception: DevFailed[
DevError[
desc = limacore.Exception: Hardware: Camera(/opt/conda/conda-bld/lima-camera-basler_1684845064631/work/src/BaslerCamera.cpp, 316): Error: Parameter not found in CIntegerParameter::SetValue. (No node attached.)
origin = Traceback (most recent call last):
File "/home/lima/miniconda3/lib/python3.9/site-packages/tango/device_class.py", line 668, in __DeviceClass__device_factory
device = self._new_device(deviceImplClass, klass, dev_name)
File "/home/lima/miniconda3/lib/python3.9/site-packages/tango/device_class.py", line 647, in __DeviceClass__new_device
return klass(dev_class, dev_name)
File "/home/lima/miniconda3/lib/python3.9/site-packages/Lima/Server/LimaCCDs.py", line 398, in __init__
self.init_device()
File "/home/lima/miniconda3/lib/python3.9/site-packages/Lima/Core/Debug.py", line 64, in real_fn
return new_fn(*arg, **kw)
File "/home/lima/miniconda3/lib/python3.9/site-packages/Lima/Server/LimaCCDs.py", line 434, in init_device
self.__control = _get_control()
File "/home/lima/miniconda3/lib/python3.9/site-packages/Lima/Server/LimaCCDs.py", line 2781, in _get_control
control = m.get_control(**properties)
File "/home/lima/miniconda3/lib/python3.9/site-packages/Lima/Server/camera/Basler.py", line 255, in get_control
_BaslerCam = BaslerAcq.Camera(camera_id, int(packet_size))
limacore.Exception: Hardware: Camera(/opt/conda/conda-bld/lima-camera-basler_1684845064631/work/src/BaslerCamera.cpp, 316): Error: Parameter not found in CIntegerParameter::SetValue. (No node attached.)
reason = PyDs_PythonError
severity = ERR]
]
```
In the initialization of the camera, we can see in the `src/BaslerCamera.cpp` file that some parameters (trig, exposure time) are set. But an emulated camera doesn't have a lot of parameters available. I think this is the problem.
Best regards, Olivier Neveuhttps://gitlab.esrf.fr/limagroup/Lima-camera-basler/-/issues/30Ability to change the value of the `image-type` attribute (or bits-per-pixel ...2023-04-25T14:55:18+02:00Olivier NeveuAbility to change the value of the `image-type` attribute (or bits-per-pixel : bpp). Hi,
We want to be able to change the value of the `image-type` attribute.
I couldn't find how to do it but I was able to modify the code of the tango class to do what we wanted to do with a new property for the `basler` class.
... Hi,
We want to be able to change the value of the `image-type` attribute.
I couldn't find how to do it but I was able to modify the code of the tango class to do what we wanted to do with a new property for the `basler` class.
Maybe there is a easier way ?
Nevertheless, I attach to this message the "diff" of the `tango/Basler.py` file if other colleagues are interested.
Best regards.[diffFile](/uploads/4b88ca39ce403762304df1b1104050ba/diffFile)https://gitlab.esrf.fr/limagroup/Lima-camera-basler/-/issues/27Can't restart too fast a Lima Basler2022-11-03T13:24:11+01:00Valentin VallsCan't restart too fast a Lima BaslerIt's a problem because for end users it looks like it is not working when using "restart" in Multivisor.
This could be fixed with a single retry in `Lima/Server/camera/Basler.py`
- capture this specific expection
- sleep for about 500m...It's a problem because for end users it looks like it is not working when using "restart" in Multivisor.
This could be fixed with a single retry in `Lima/Server/camera/Basler.py`
- capture this specific expection
- sleep for about 500ms
- retry a single time
```
DevError[
desc = limacore.Exception: Hardware: Camera(/opt/conda/conda-bld/lima-camera-basler_1658736749318/work/src/BaslerCamera.cpp, 298): Error: Failed t
o open 'Basler acA1300-30gm#00305313C876#169.254.3.1:3956'. The device is controlled by another application. Err: An attempt was made to access an add
ress location which is currently/momentary not accessible. (0xE1018006)
origin = Traceback (most recent call last):
File "/users/blissadm/conda/miniconda/envs/basler/lib/python3.9/site-packages/tango/device_class.py", line 569, in __DeviceClass__device_factory
device = self._new_device(deviceImplClass, klass, dev_name)
File "/users/blissadm/conda/miniconda/envs/basler/lib/python3.9/site-packages/tango/device_class.py", line 548, in __DeviceClass__new_device
return klass(dev_class, dev_name)
File "/users/blissadm/conda/miniconda/envs/basler/lib/python3.9/site-packages/Lima/Server/LimaCCDs.py", line 398, in __init__
self.init_device()
File "/users/blissadm/conda/miniconda/envs/basler/lib/python3.9/site-packages/Lima/Core/Debug.py", line 64, in real_fn
return new_fn(*arg, **kw)
File "/users/blissadm/conda/miniconda/envs/basler/lib/python3.9/site-packages/Lima/Server/LimaCCDs.py", line 434, in init_device
self.__control = _get_control()
File "/users/blissadm/conda/miniconda/envs/basler/lib/python3.9/site-packages/Lima/Server/LimaCCDs.py", line 2781, in _get_control
control = m.get_control(**properties)
File "/users/blissadm/conda/miniconda/envs/basler/lib/python3.9/site-packages/Lima/Server/camera/Basler.py", line 252, in get_control
_BaslerCam = BaslerAcq.Camera(camera_id, int(packet_size))
limacore.Exception: Hardware: Camera(/opt/conda/conda-bld/lima-camera-basler_1658736749318/work/src/BaslerCamera.cpp, 298): Error: Failed to open 'Bas
ler acA1300-30gm#00305313C876#169.254.3.1:3956'. The device is controlled by another application. Err: An attempt was made to access an address locati
on which is currently/momentary not accessible. (0xE1018006)
reason = PyDs_PythonError
severity = ERR]
]
```https://gitlab.esrf.fr/limagroup/Lima-camera-basler/-/issues/6RGB32 not taken into account when image size is set in Camera contructor2019-02-15T15:13:25+01:00Laurent ClaustreRGB32 not taken into account when image size is set in Camera contructorBasler support RGB (or BGR) 32 bit, former RGBA8packed and BGRA8packed. So in Camera ctor we only parse supported mode
from 16bit to 8bit as the best mode, but the buffer should be allocated for the biggest size in 32bitBasler support RGB (or BGR) 32 bit, former RGBA8packed and BGRA8packed. So in Camera ctor we only parse supported mode
from 16bit to 8bit as the best mode, but the buffer should be allocated for the biggest size in 32bitv1.8.1Laurent ClaustreLaurent Claustre