Back to Aurora Vision Library Lite website

You are here: Start » Camera Support » IFM » IFM_SetDigitalOutput

IFM_SetDigitalOutput


Header: ThirdPartySdk.h
Namespace: avl

Sets the logic state of a specific io.

Syntax

void avl::IFM_SetDigitalOutput
(
	Ifm_State& ioState,
	const avl::IFMCameraAddress& inAddress,
	const int inNumber,
	const bool inState
)

Parameters

Name Type Default Description
Input will be modified ioState Ifm_State& Object used to maintain state of the function.
Input value inAddress const IFMCameraAddress& Device identifying address
Input value inNumber const int Digital output number
Input value inState const bool Output state

Remarks

Device driver software

This filter is intended to cooperate with a device using PMDSDK 2. In order to connect with the device, it is required to download PMDSDK 2.

PMDSDK 2 can be downloaded from the following website: https://www.ifm.com/us/en/search#!/infomaterialanddownloads?_type=infomaterialanddownloads&docType=download. Please download "O3D303 Software Development Kit"

After download you have to manually copy pmdaccess2.dll file to Aurora Vision Studio main directory (usually located in Program Files). Alternatively you can add directory with this dll file to PATH environment variable

Additionally in inAddress input you will need to provide camera plugin and processing plugin file path.

It is recommended to disable DHCP in the device and using static IP address.

Setting digital outputs

This function doesn't work with ifm sensors. It works only with ifm cameras.

The filter is equivalent to execution of IFM_SourceCommand with inCommand = "SendPCICommands o<IO-ID><IO-state>"

Multithreaded environment

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

See Also