Back to Adaptive Vision Studio website

You are here: Start » Filter Reference » Basler » Pylon_GrabImage_WithTimeout

Pylon_GrabImage_WithTimeout


Captures an image stream from a camera using Pylon library; returns Nil if no frame comes in the specified time.

Name Type Range Description
inDeviceID String* Serial number, model name, user defined name or full name of camera device to be opened
inOutputQueueSize Integer 1 - 200 Capacity of output frames queue
inTimeout Integer 100 - Maximum time to wait for frame in milliseconds
inPixelFormat PylonImageFormat* Image pixel format
inFrameRate Real* 0.1 - 400.0 Requested camera frame rate in frames per second
inAoi Box* Required fragment of image to stream. To reset AOI set Box(0,0,0,0)
inExposureTime Real* 0.0 - Camera frame exposition time
inGain Real* 0.0 - Analog gain of source image in device raw unit
inBlackLevel Real* 0.0 - Black level of source image
inTriggerEnabled Bool* Configure trigger enable
inTriggerSource PylonTriggerSource* Source of acquisition trigger
inTriggerActivation PylonTriggerActivation* Circumstances defining when the trigger is activated
outImage Image? Captured frame
outFrameID Long? Captured frame ID
outTimestamp Long? Captured frame timestamp

Examples

Description of usage of this filter can be found in examples and tutorial: HMI Recorder.

Remarks

Camera driver software

This filter is intended to cooperate with a camera using its vendor SDK. To be able to connect to a camera, it is required to install Pylon SDK software with camera dedicated drivers.

Pylon SDK can be downloaded from the following website: https://www.baslerweb.com/ (registration may be required).

Recommended Pylon SDK version for Adaptive Vision Studio usage is 6.1.

Camera identification

When there is only one camera connected to a computer, field inDeviceID can be set to Auto. In this case, first available camera will be found and connected.

inDeviceID field can be used to pick one of multiple cameras connected to computer. DeviceID can be set to:

  • Serial number - should be specified on device casing, for example "12345678".
  • User defined name - user defined device name.
  • Friendly name - human readable name of the device.
  • Device full name - full name identifying the device.
  • Model name - model name of the device.
  • Ip Address - camera IP address. Only for GigEVision cameras.
Camera parameters

Setting inAoi parameter to 'Auto' will select maximum possible camera frame size.

All the other parameters exposed by camera filters are optional, setting them to 'Auto' leaves related parameter unchanged in camera (device default or user set configuration).

To change other, more advanced camera parameters, use configuration tool "Pylon Viewer" available with Pylon SDK or Pylon_SetXXXParameter filters. Refer to Pylon documentation to find information about parameters and how to create user parameters sets.

Output outFrameId
  • IEEE 1394 Camera Devices - The value of block ID is always -1.
  • GigE Camera Devices - The sequence number starts with 1 and wraps at 65535. The value 0 has a special meaning and indicates that this feature is not supported by the camera.
  • USB Camera Devices - The sequence number starts with 0 and uses the full 64 Bit range.

A block ID of value -1 indicates that the Block ID is invalid and must not be used.

Output outTimeStamp

In case of GigE-Vision this describes when the image exposure was started. Cameras that do not support this feature return zero. If supported this may be used to determine which ROIs were acquired simultaneously.

In case of FireWire this value describes the cycle time when the first packet arrives.

Multithreaded environment

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

Complexity Level

This filter is available on Basic Complexity Level.

Filter Group

This filter is member of Pylon_GrabImage filter group.

See Also

  • Pylon_GrabImage – Captures an image stream from a camera using Pylon library.