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

Error with Andor.Camera function #6

Open
nxtG1O opened this issue Mar 29, 2019 · 1 comment
Open

Error with Andor.Camera function #6

nxtG1O opened this issue Mar 29, 2019 · 1 comment

Comments

@nxtG1O
Copy link

nxtG1O commented Mar 29, 2019

Hello,

I have an iDus 401 CCD USB camera connected to a Windows 10 PC. However, I cannot load it after executing the Andor.Camera() command. The following error is popping out.

`In [2]: cam = Andor.Camera(r"C:\Program Files (x86)\Andor iDus\Drivers", 0)
Traceback (most recent call last):

File "", line 1, in
cam = Andor.Camera(r"C:\Program Files (x86)\Andor iDus\Drivers", 0)

Exception: Hardware: lima::Andor::Camera::initPGain(c:\miniconda3\conda-bld\lima-camera-andor_1549982997152\work\src\andorcamera.cpp, 1303): Error: Failed to get gainerror_code(ret_code)=DRV_P1INVALID`

Best regards,
George

@laurent-claustre
Copy link
Contributor

Hi ,
we have to work on andor for new linux kernel 3, so I will add the changes for testing if the camera supports features like PreAmp Gain.
Cheers
Laurent

My last answer:

Hi George,

it seems the iDus camera model does not support PreAmplier gain control and GetPreAmpGain() failed line 1303 in file AndorCamera.cpp.

The code does not check if the camera support this feature (PreAmp gain) the SDK provides a function to test feature availability, IsPreAmpGainAvailable.
Ok we can make the fix, but we do not have iDus camera to test, only iKon.

Regards,

Laurent

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

2 participants