Thorlabs_GrabImage


Captures an image from a Thorlabs device.

Syntax

C++
Python
 
def Thorlabs_GrabImage(
	state: Thorlabs_State,
	outImage: Image,
	/,
	*,
	inDeviceID: str | None = None,
	inInputQueueSize: int | None = None,
	inExposureTime: int | None = 50000,
	inGain: int | None = 120
)
-> (
	outResult: bool,
	outFrameID: int
)

Parameters

Name Type Range Default Description
Input will be modified ioState Thorlabs_State
Input value inDeviceID str | None None Camera serial number or name, Auto = first camera
Input value inInputQueueSize int | None 0 - None Sets size of image queue (on acquisition start, default = 8)
Input value inExposureTime int | None 1 - 50000 Sets the target exposure time in microseconds
Input value inGain int | None 0 - 1023 120 Sets gain
Output value outImage Image Captured frame
Output value outFrameID int Captured frame ID

Multithreaded environment

This function is not guaranteed to be thread-safe. When used in multithreaded environment, it has to be manually synchronized.