Ensenso_GrabSurface_WithTimeout


Captures a Surface using Ensenso.

Syntax

C++
Python
 
def Ensenso_GrabSurface_WithTimeout(
	state: Ensenso_State,
	inDevices: list[EnsensoCameraInformation],
	inTimeout: int,
	/,
	*,
	inParametersFile: str | None = None
)
-> (
	outResult: bool,
	outSurface: Surface | None
)

Parameters

Name Type Range Default Description
Input will be modified ioState Ensenso_State
Input value inDevices list[EnsensoCameraInformation] Structures identifying devices.
Input value inParametersFile str | None None Initial global parameters.
Input value inTimeout int 100 - 3600000 Maximum time to wait for frame in milliseconds.
Output value outSurface Surface | None Captured Surface.

Multithreaded environment

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