output:
3
Traceback (most recent call last):
File "D:...\Camera_Control.py", line 19, in
cam = Andor.AndorSDK3Camera(idx=0)
File "C:\env\Lib\site-packages\pylablib\devices\Andor\AndorSDK3.py", line 232, in init
self.open()
File "C:\envs\lineTF\Lib\site-packages\pylablib\devices\Andor\AndorSDK3.py", line 257, in open
self.handle=lib.AT_Open(self.idx)
^^^^^^^^^^^^^^^^^^^^^
File "", line 1, in
File "C:\envs\lineTF\Lib\site-packages\pylablib\core\utils\ctypes_wrap.py", line 279, in wrapped_func
retval=func(*call_args)
^^^^^^^^^^^^^^^^
OSError: exception: access violation writing 0x00000000B2441910
extra explanation:
I can connect to 2 simCams and retrieve all attribute value; the OSErros only occurs when connecting to a real hardware when setting 'idx=0'.
Connection between camera with host PC was performed on Andor Solis, the commercial software from Andor, and it works normally.
The driver used is Bitflow Karbon 5.700.0.0
Can you provide some hint how I can solve this problem?
Hi Alex,
Thanks for your devotion to this project and it does provide practical help for hardware implementation.
I have some problems when connecting to a Andor Zyla 4.2 sCMOS, and it returns: OSError: exception: access violation writing 0x00000000B2441910
my code: import pylablib as pll pll.par["devices/dlls/andor_sdk3"] = "C:/Program Files/Andor SDK3/" from pylablib.devices import Andor
print(Andor.get_cameras_number_SDK3()) cam = Andor.AndorSDK3Camera(idx=0) cam.close()
output: 3 Traceback (most recent call last): File "D:...\Camera_Control.py", line 19, in
cam = Andor.AndorSDK3Camera(idx=0)
File "C:\env\Lib\site-packages\pylablib\devices\Andor\AndorSDK3.py", line 232, in init
self.open()
File "C:\envs\lineTF\Lib\site-packages\pylablib\devices\Andor\AndorSDK3.py", line 257, in open
self.handle=lib.AT_Open(self.idx)
^^^^^^^^^^^^^^^^^^^^^
File "", line 1, in
File "C:\envs\lineTF\Lib\site-packages\pylablib\core\utils\ctypes_wrap.py", line 279, in wrapped_func
retval=func(*call_args)
^^^^^^^^^^^^^^^^
OSError: exception: access violation writing 0x00000000B2441910
extra explanation:
Can you provide some hint how I can solve this problem?
Best, Adam