Back to Adaptive Vision Library website

You are here: Start » Function Reference » Ensenso » Ensenso_GrabPoint3DGrid_WithTimeout

Ensenso_GrabPoint3DGrid_WithTimeout


Header:ThirdPartySdk.h
Namespace:avl

Captures a Point3DGrid using Ensenso.

Syntax

bool avl::Ensenso_GrabPoint3DGrid_WithTimeout
(
	Ensenso_State& ioState,
	const atl::Array<avl::EnsensoCameraInformation>& inDevices,
	int inTimeout,
	atl::Conditional<avl::Point3DGrid>& outGrid,
	const atl::Optional<atl::File>& inParametersFile
)

Parameters

Name Type Range Default Description
ioState Ensenso_State& Object used to maintain state of the function.
inDevices const Array<EnsensoCameraInformation>& Structures identifying devices
inTimeout int 100 - 3600000 5000 Maximum time to wait for frame in milliseconds
outGrid Conditional<Point3DGrid>& Captured Grid
inParametersFile const Optional<File>& NIL Initial global parameters

Remarks

Initial parameters

Initial parameters are only set during capture start. To change parameters either restart the stream, or use appropriate Set/Get filters.

Settings

To obtain settings from the camera:

  • From NxView Parameters window
    • Launch NxView
    • Open camera
    • Open Parameters window (menu Capture->Parameters...)
    • Adjust settings as wanted
    • Use Save... button
  • From NxTreeEdit application
    • Either:
      • Launch Adaptive Vision Studio, add Ensenso_GrabPoint3DGrid filter, Run it
      • Launch NxView, open camera
    • Launch NxTreeEdit, connect to wanted instance
    • Adjust settings as wanted, either in NxView or NxTreeEdit
    • right click on /Cameras/BySerialNo/WantedSerialNumber and select Copy value as JSON string
    • save to a simple text file using an editor

The settings include all camera parameters, including Link, Calibration and Parameters The saved file can be then used in inCalibrationFile and inSettingsFile arguments.

To obtain global parameters, follow previous NxTreeEdit step, but save the global /Parameters node.

Camera identification

When there is only one Ensenso camera connected, the field inDevices can be set to Auto. In this situation, the first available camera will be used.

inDevices can be used to pick one or many of multiple cameras connected to the computer.

Camera driver software

This filter is intended to cooperate with cameras using their vendor's SDK. In order to connect with the camera, it is required to install Ensenso SDK software, and uEye driver (same as in IDS camera filters)

Ensenso SDK can be downloaded from the following website: https://www.ensenso.com/support/sdk-download/

uEye driver can be downloaded from the following website: https://en.ids-imaging.com/download-ueye.html

Recommended Ensenso SDK version for Adaptive Vision Studio usage is 2.2 and uEye driver 4.90.

Multithreaded environment

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

See Also