TriggerSource
Top  Previous  Next

Description

Returns or sets the internal signal or physical input to be used as the trigger source for the selected trigger configuration. Can be one of the following values:

"Software"  
   Trigger signal will be generated by software using the SoftTrigger command.  
"Line0", "Line1", "Line2",...  
   The physical line or pin to be used as external trigger source.  
"Timer1Start", "Timer2Start", ..."Timer1End", "Timer2End",...  
   The Timer signal to be used as internal trigger source  
"Counter1Start", "Counter2Start", ..."Counter1End", "Counter2End",...  
   The Counter signal to be used as internal trigger source  
"UserInput0", "UserInput1", "UserInput2",...  
   The User Output bit signal to be used as internal trigger source  
 

Syntax


[VB]
objActiveUSB.TriggerSource [= Value]


[C/C++]
HRESULT get_TriggerSource( string *pValue );
HRESULT put_TriggerActivation( string Value );



Data Type
[VB]

String

Parameters
[C/C++]

pValue [out, retval]  
Pointer to the string specifying the current trigger source  
Value [in]  
The trigger source to be set  

Return Values


S_OK  
Success  
E_NOINTERFACE  
The feature is not available for the selected camera  
E_INVALIDARG  
The value is not part of the enumerated set  
E_FAIL  
Failure to set the feature value  
 

Example


The following VB example sets a hardware trigger which will start the capture of each frame on the rising edge of the signal coming from the physical input Line1:

ActiveUSB1.TriggerSelector = "FrameStart"
ActiveUSB1.Trigger = 
True

ActiveUSB1.TriggerActivation = "RisingEdge"
ActiveUSB1.TriggerSource = "Line1"
ActiveUSB1.Acquire = 
True

 

Remarks


Before setting up this property, select a corresponding trigger configuration with TriggerSelector.

Depending on a camera model, other device-specific values may be available for this feature. The list of valid values can be retrieved using GetEnumList.

Note that the property is available only if the currently selected camera supports the TriggerSource feature per GenICam standard.