Back to Adaptive Vision Library website

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

Lex_SetDigitalOutput


Header: ThirdPartySdk.h
Namespace: avl
Module: ThirdParty

Sets a digital output state of LEX computers.

Syntax

void avl::Lex_SetDigitalOutput
(
	Lex_SetDigitalOutputState& ioState,
	const int inOutput,
	bool inState
)

Parameters

Name Type Default Description
ioState Lex_SetDigitalOutputState& Object used to maintain state of the function.
inOutput const int Number of output to change
inState bool State of pin output to set

Description

This filter can change state of digital outputs in LEX computers. Maximal number of output 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