Back to Adaptive Vision Library website

You are here: Start » Function Reference » Hardware Support » LEX » Lex_GetDigitalInput

Lex_GetDigitalInput


Header: ThirdPartySdk.h
Namespace: avl
Module: ThirdParty

Gets a digital input state of LEX computers.

Syntax

void avl::Lex_GetDigitalInput
(
	Lex_GetDigitalInputState& ioState,
	const int inInput,
	bool& outState
)

Parameters

Name Type Default Description
ioState Lex_GetDigitalInputState& Object used to maintain state of the function.
inInput const int Number of pin to read
outState bool& Read state of chosen pin

Description

This filter can read state of digital inputs in LEX computers. Maximal number of input vary between different models.

Remarks

Running LEX related filters

Mechanism of Digital IO control of LEX computers demands to be run by Administrator account. LEX related filters will not work if Adaptive Vision Studio or any program based on Adaptive Vision Library is not run by Administrator. One can achieve that by right clicking on program to be ran and selecting "Run as administrator".

This filter is available only on 64-bit platform.

Multithreaded environment

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

Errors

List of possible exceptions:

Error type Description
RuntimeError Lex filters are available only on 64-bit platform.
SystemError Could not initialize F75111 DIO controller. LEX needs Administrator privileges to run.

See Also