Back to Adaptive Vision Library website

You are here: Start » Function Reference » Hikvision » Hikvision_ConfigureTrigger

Hikvision_ConfigureTrigger


Header:ThirdPartySdk.h
Namespace:avl

Sets triggering parameters.

Syntax

void avl::Hikvision_ConfigureTrigger
(
	Hikvision_State& ioState,
	atl::Optional<const atl::String&> inDeviceID,
	atl::Optional<bool> inTriggerEnabled,
	atl::Optional<avl::HikvisionEvent::Type> inTriggerSelector,
	atl::Optional<avl::HikvisionTriggerSource::Type> inTriggerSource,
	atl::Optional<avl::HikvisionTriggerActivation::Type> inTriggerActivation,
	atl::Optional<float> inTriggerDelay
)

Parameters

Name Type Range Default Description
ioState Hikvision_State& Object used to maintain state of the function.
inDeviceID Optional<const String&> NIL Camera serial number, name or IP address, Auto = first camera
inTriggerEnabled Optional<bool> False True if using trigger
inTriggerSelector Optional<HikvisionEvent::Type> FrameBurstStart Triggering event selection
inTriggerSource Optional<HikvisionTriggerSource::Type> Line0 Trigger source
inTriggerActivation Optional<HikvisionTriggerActivation::Type> RisingEdge Trigger polarity
inTriggerDelay Optional<float> 0.0 - 0.0f Delay of trigger in microseconds

Remarks

Camera driver software

This filter is intended to cooperate with camera using its vendor Hikvision SDK. To be able to connect to camera it is required to install Hikvision Machine Vision Software with camera dedicated drivers. Currently Adaptive Vision Studio uses Hikvision SDK version 3.2.0 (DLL version 3.2.0.3).

Hikvision SDK can be downloaded from the following website: http://en.hikrobotics.com/service/soft.htm?type=1

Setting bandwidth for GigEVision cameras

Bandwidth of Hikvision GigEVision cameras needs to be configured before use, otherwise packet loss and image artifacts may occur.

Open MVS software from Hikvision and connect to the camera. Open Settings / Options menu and go to Network tab. Bandwidth Control slider will be shown. To preserve new value of bandwidth after disconnecting power from the camera, you will need to save it using User Set Control parameters in Features tab.

Multithreaded environment

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

See Also