Closed mfe5003 closed 7 years ago
Need to correct the location of the file. Instead of
self.dll = CDLL(r"D:\git\cspycontroller\python\Andor\atmcd64d.dll")
Try something like
self.dll=CDLL("C:\\Users\\Rb\\LabSoftware\\CsPyNewGit\\CsPyController\\python\\Andor\\atmcd64d.dll")
I thought I had fixed that. Is that not on the github version? This is the DLL code I have:
try:
self.dll = CDLL(r"D:\git\cspycontroller\python\Andor\atmcd64d.dll")
except Exception as e:
logger.warning('Failed to load DLL for Andor (check path?): {}. Andor disabled.'.format(e))
self.enable = False
return
Also, if there's a way to specify the DLL location using a relative path, that would be better (since it's inside the repository directory). I tried that in the past but it didn't work.
You're right. I must have either been running an older version or I misunderstood what was breaking.
Not having the andor dlls installed will cause the controller to fail even if andor is not enabled. Temp fix: comment out the andor instrument & analyses or install dlls