connect

Contents

connect#

method

UC480.connect(serialno: str, local: bool = False, bit_depth: int = 8, pixelclock: int = 24, color: bool = True, colormode: int = 11, roi_shape: Tuple[int, int] = (1024, 1280), roi_pos: Tuple[int, int] = (0, 0), framerate: int = 15, exposure: int = 90, pixelbytes: int = 8, brightness: int = 5)[source]#

Opens the serial communication with the Thorlabs camera and sets defaults.

Default low-level values that are set include the bit depth and camera name.

Parameters:
serialnoint

The serial number of the camera that should be connected.

localbool, optional

Whether the camera is being used as a local device; if True, will not configure sockets for streaming when starting capature (default False).

bit_depthint, optional

The number of bits used for each pixel (default 8).

pixelclock: int, optional

Clock speed of the camera (default 24).

colorbool, optional

Whether the camera is in color mode or not (default True).

colormode: int, optional

Mode of color that the camera returns data in. 11 (default) returns raw format, see set_color_mode() for more information.

roi_shapetuple(int, int), optional

Dimensions of the image that is taken by the camera (default (1024, 1280)).

roi_postuple(int, int), optional

Position of the top left corner of the roi (region of interest) in relation to the sensor array (default (0,0)).

framerateint, optional

The framerate of the camera in frames per second (default 15).

exposure: int, optional

In milliseconds, the time the shutter is open on the camera (default 90).

pixelbytes: int, optional

The amount of memory space allocated per pixel in bytes (default 8).

brightnessint

Integer (range 1-10) defining the brightness, where 5 leaves the brightness unchanged.