Skip to content

uc480 camera initialization fail #3

@dchang24

Description

@dchang24

When I run the code for the Thorlabs DC1545M camera, it couldn't execute is_InitCamera(). The camera works when I use the ThorCam software, and the Python code does detect the presence camera with the correct information:

Load uc480 library..
API version 4.80.5
Found 1 camera(s)
Camera #0: SerNo = b'4103156957', CameraID = 1, DeviceID = 1

It just fails with the is_InitCamera() with the return flag=3. If I unplug the camera and run it again, it is also showing flag=3. I'm pretty sure I've closedother programs using the camera.
Before using this code, I also tried to code it myself using ctypes, and I also had problems running is_InitCamera(). The strange thing is if I ignore the error and go on to take images, it succeeds although it doesn't use the correct exposure time I set. Any idea why this code doesn't work? Does it have to do with the OS (I'm using Windows 10) or other things?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions