Back to Aurora Vision Library website

You are here: Start » Function Reference » Hardware Support » Advantech » DAQNavi_SetPortDirection

DAQNavi_SetPortDirection


Header: ThirdPartySdk.h
Namespace: avl
Module: ThirdParty

Sets the port direction (input or output).

Syntax

void avl::DAQNavi_SetPortDirection
(
	DAQNavi_State& ioState,
	atl::Optional<const atl::String&> inDeviceID,
	int inPort,
	bool inPortIsOutput
)

Parameters

Name Type Range Default Description
Input will be modified ioState DAQNavi_State& Object used to maintain state of the function.
Input value inDeviceID Optional<const String&> NIL Description or index of device
Input value inPort int 0 - + Port number
Input value inPortIsOutput bool True if port should be an output, false if port should be an input

Remarks

Board driver software

This filter is intended to cooperate with digital I/O cards using its vendor SDK. To be able to connect to a card it is required to install DAQNavi SDK software. Currently Aurora Vision Studio requires DAQNavi SDK version 4.1.3.

DAQNavi SDK can be downloaded from the following website: https://www.advantech.com.

Device identification

When there is only one device connected to computer, inDeviceID field can be set to Auto. In this situation first available device will be found and connected.

inDeviceID can be used to pick one of multiple devices connected to computer. Set this field to Device Description (for example "DemoDevice, BID#000"), or to Device Number(for example "0"). Both parameters should be available in Advantech Navigator.

See Also