TriggerDelay
Top  Previous  Next

Description

Returns or sets the raw value of the trigger delay.


Syntax


[VB]
objActiveDcam.TriggerDelay [= Value]


[C/C++]
HRESULT get_TriggerDelay( long *pTriggerDelay );
HRESULT put_TriggerDelay( long TriggerDelay );



Data Type
[VB]

Long

Parameters
[C/C++]

pTriggerDelay [out,retval]  
Pointer to the current trigger delay value  
TriggerDelay [in]  
The trigger delay value to be set  


Return Values


S_OK  
Success  
E_FAIL  
The trigger delay control is not available for the selected camera  
E_INVALIDARG  
The value is out of range  
 

Example


The following VB example demonstrates the use of a scroll control for real-time adjustment of the trigger delay value.

Private Sub
 Form_Load()

ActiveDcam1.Acquire=
True

HScroll1.Value = ActiveDcam1.TriggerDelay
HScroll1.Min = ActiveDcam1.GetTriggerDelayMin
HScroll1.Max = ActiveDcam1.GetTriggerDelayMax
End Sub


Private Sub
 HScroll1_Scroll()

ActiveDcam1.TriggerDelay = HScroll1.Value

End Sub

 

Remarks


This property changes the trigger delay which defines the time between the arrival of the trigger signal and acquisition of the frame.

The valid property range is reported by the GetTriggerDelayMin and GetTriggerDelayMax methods. Note that the property is available only if the currently selected camera supports software trigger delay control.