Traceback (most recent call last):
File "application.py", line 566, in routine_data_sender
nrAverages=1
File "C:\Program Files (x86)\CALOA\spectro.py", line 748, in prepareAll
nrAverages=nrAverages)
File "C:\Program Files (x86)\CALOA\spectro.py", line 624, in prepareMeasure
avaspec.AVS_GetNumPixels(device, ctypes.byref(numPix))
File "C:\Program Files (x86)\CALOA\avaspec.py", line 150, in AVS_GetNumPixels
handle, ctypes.byref(pixelsarray)
TypeError: byref() argument must be a ctypes instance, not 'CArgObject'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\pixel\AppData\Local\Programs\Python\Python36\lib\tkinter\__init__.py", line 1702, in __call__
return self.func(*args)
File "C:\Users\pixel\AppData\Local\Programs\Python\Python36\lib\tkinter\__init__.py", line 746, in callit
func(*args)
File "application.py", line 573, in routine_data_sender
nrAverages=1
File "C:\Program Files (x86)\CALOA\spectro.py", line 748, in prepareAll
nrAverages=nrAverages)
File "C:\Program Files (x86)\CALOA\spectro.py", line 624, in prepareMeasure
avaspec.AVS_GetNumPixels(device, ctypes.byref(numPix))
File "C:\Program Files (x86)\CALOA\avaspec.py", line 150, in AVS_GetNumPixels
handle, ctypes.byref(pixelsarray)
TypeError: byref() argument must be a ctypes instance, not 'CArgObject'
Windows-7-6.1.7601-SP1 CPython-3.6.5