Back to Aurora Vision Library website

You are here: Start » Function Reference » Hardware Support » Hikrobot » Hikrobot_SetOutputParameters

Hikrobot_SetOutputParameters


Header: ThirdPartySdk.h
Namespace: avl
Module: ThirdParty

Set output parameters.

Syntax

void avl::Hikrobot_SetOutputParameters
(
	Hikrobot_State& ioState,
	atl::Optional<int> inDeviceID,
	avl::HikrobotPortNumber::Type inPortNumber,
	avl::HikrobotPatternOut::Type inMode,
	int inPulseWidth,
	int inPulsePeriod,
	int inPulseDuration,
	bool inLevel
)

Parameters

Name Type Range Default Description
Input will be modified ioState Hikrobot_State& Object used to maintain state of the function.
Input value inDeviceID Optional<int> 1 - NIL Device identification number - COM port number.
Input value inPortNumber HikrobotPortNumber::Type Device port number reference.
Input value inMode HikrobotPatternOut::Type MvIoPatternSingle Output mode: Single pulse or PWM.
Input value inPulseWidth int 1 - 65535 PWM pulse width [ms].
Input value inPulsePeriod int 1 - 65535 1 PWM pulse period [ms].
Input value inPulseDuration int 1 - 65535 20 PWM pulse duration [ms].
Input value inLevel bool True Effective level (there may be reversed logic).

Remarks

This filter allows to set the output parameters of a specific port of the device. The parameters are output mode (Single pulse or PWM), PWM pulse width, PWM pulse period, PWM pulse duration and effective level.

I/O device driver software

This filter is intended to cooperate with a device using its vendor SDK. To be able to connect to a device, it is required to install Hikrobot VC4000 SDK.

Add DLL path to system environment variable is required.

In some computer models, digital inputs and outputs may operate in reverse logic (true is low signal level). Please check your device.

Recommended Hikrobot VC4000 SDK version for Aurora Vision Studio usage is 1.2.0.

Device identification

inDeviceID field can be used to pick one of multiple I/Os connected to computer. DeviceID can be set to:

  • COM port number - the number of the COM port used to communicate with the I/O.

See Also