GetTriggerList
Top  Previous  Next

Description

Returns the array of strings containing the trigger sources supported by the currently selected camera.


Syntax


[VB]
Value=objActiveDcam.GetTriggerList()


[C/C++]
HRESULT GetTriggerList( VARIANT* pList );


Data Types
[VB]

Return value: Variant (SAFEARRAY)


Parameters
[C/C++]

pList [out,retval]  
Pointer to the SAFEARRAY containing available trigger sources  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB example initializes a combo box with the descriptions of available trigger sources and uses it to select a specific hardware source:

Private Sub
 Form_Load()
ModeLst = ActiveDcam1.GetTriggerList
For
 i = 0 
To
 UBound(TriggerLst)
Combo1.AddItem (TriggerLst(i))
Next
Combo1.ListIndex = 0
End Sub

Private Sub
 Combo1_Click()
ActiveDcam1.TriggerSource = Combo1.ListIndex
End Sub
 

Remarks


The index of an element in the mode list can be used as an argument of the TriggerSource except for the Software source which is equivalent to trigger source #7

Note that in C/C++ applications it is required to call SafeArrayDestroy() to delete the SAFEARRAY returned by GetTriggerList.