Back to Aurora Vision Library Lite website

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

Lex_GetDigitalInput


Header: ThirdPartySdk.h
Namespace: avl

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
Input will be modified ioState Lex_GetDigitalInputState& Object used to maintain state of the function.
Input value inInput const int Number of pin to read
Output value 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 Aurora Vision Studio or any program based on Aurora 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