Back to Adaptive Vision Library website

You are here: Start » Function Reference » Allied Vision Technologies » Vimba_GetDigitalInput

Vimba_GetDigitalInput


Header:ThirdPartySdk.h
Namespace:avl

Gets a digital input state from an Allied Vision camera.

Syntax

void avl::Vimba_GetDigitalInput
(
	Vimba_State& ioState,
	atl::Optional<const atl::String&> inDeviceID,
	int inLineNumber,
	bool& outState
)

Parameters

Name Type Default Description
ioState Vimba_State& Object used to maintain state of the function.
inDeviceID Optional<const String&> NIL Device identifying address
inLineNumber int Line number to get state
outState bool& State of selected line

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

Vimba SDK can be downloaded from the following website: https://www.alliedvision.com/en/products/software.html

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

Recommended Vimba SDK version for Adaptive Vision Studio usage is 2.1.

Camera identification

When there is only one Allied Vision 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.

Multithreaded environment

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