Back to Adaptive Vision Library website

You are here: Start » Function Reference » Imago Technologies » VisionBox_GetDigitalInput

VisionBox_GetDigitalInput


Reads a digital input state of Imago VisionBox computers.

Syntax

void avl::VisionBox_GetDigitalInput
(
	VisionBox_State& ioState,
	const int inPort,
	const int inInput,
	bool& outState
)

Parameters

Name Type Default Description
ioState VisionBox_State& Object used to maintain state of the function.
inPort const int Number of DigitalInput device to use
inInput const int Number of input to read
outState bool& State of selected input pin

Description

This filter can read state of digital inputs of Imago VisionBox computers. Number of inputs vary between hardware editions.

One should specify inPort to access, and inInput (singular pin) to read its outState. Refer to Hardware Manual to see physical connection of input pins of ones' VisionBox.

Remarks

Precondition for use of VisionBox filters is to have Imago Technologies AGE-X SKD installed on target computer. AGE-X SDK provides filters with necessary libraries (DLL files) and drivers. After installation of AGE-X SDK, system restart may be required.

Multithreaded environment

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

See Also