Back to Adaptive Vision Library website

You are here: Start » Function Reference » IDS » IDS_ConfigureGPIO

IDS_ConfigureGPIO


Header:ThirdPartySdk.h
Namespace:avl

Configure digital inputs/outputs of IDS camera

Syntax

void avl::IDS_ConfigureGPIO
(
	IDS_BaseState& ioState,
	const atl::Optional<atl::String>& inDeviceID,
	int inGPIO,
	avl::IDSGPIOConfiguration::Type inConfiguration,
	bool inState
)

Parameters

Name Type Range Default Description
ioState IDS_BaseState& Object used to maintain state of the function.
inDeviceID const Optional<String>& NIL Device serial number or user definable camera ID
inGPIO int 1 - 6 GPIO id
inConfiguration IDSGPIOConfiguration::Type GPIO Configuration
inState bool GPIO state (true = High, false = Low)

Remarks

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 IDS SDK software.

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

To verify the driver installation, you can run IDS Camera Manager. If the camera was detected and you can see the view from the camera, you can use IDS SDK in Adaptive Vision Studio.

Recommended IDS SDK version for Adaptive Vision Studio usage is 4.94.

Camera identification

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

inDeviceID can be used to pick one of multiple cameras connected to the computer. inDeviceID should be set to camera ID.

Source code

In Professional edition this filter is open source. You can use this filter as reference when implementing support for your specific hardware. You can also modify this filter and add some additional functionality.

The source code is located in the directory:

Public Documents\Adaptive Vision Studio 4.x Professional\Sources\UserFilters\IDS

Typically it is:

C:\Users\Public Documents\Adaptive Vision Studio 4.x Professional\Sources\UserFilters\IDS 

Multithreaded environment

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

See Also