VisionBox_SetCameraTrigger


Sets camera trigger configuration.

Syntax

C++
Python
 
def VisionBox_SetCameraTrigger(
	state: VisionBox_State,
	inDeviceNumber: int,
	inTriggerSource: VisionBoxTriggerSource,
	inTrgPOff: bool,
	inTrgPOn: bool,
	inTrgNOff: bool,
	inTrgNOn: bool,
	/,
	*,
	inChannelNumber: int | None = None
)
-> None

Parameters

Name Type Default Description
Input will be modified ioState VisionBox_State
Input value inDeviceNumber int Device number
Input value inChannelNumber int | None None Channel in device - when set to auto all channels will be configured at the same time
Input value inTriggerSource VisionBoxTriggerSource Signal used to issue the trigger
Input value inTrgPOff bool P Gate OFF signal
Input value inTrgPOn bool P Gate ON signal
Input value inTrgNOff bool N Gate OFF signal
Input value inTrgNOn bool N Gate ON signal

Multithreaded environment

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