GetTriggerInfo
Top  Previous  Next

Description

Returns the array of long values containing the information releated to triggering.


Syntax


[VB]
Value=objActiveDcam.GetTriggerInfo()


[C/C++]
HRESULT GetTriggerInfo( VARIANT* pInfo );


Data Types
[VB]

Return value: Variant (Array)


Parameters
[C/C++]

pInfo [out,retval]  
Pointer to the SAFEARRAY containing the following long values in the listed order:  
 
- presense of the trigger feature (1 - available, 0 - unavailable)  
- supported Trigger Modes (most significant bit 0 indicates presence of mode 0, bit 1 - mode 1 etc.)  
- presense of the trigger polarity control (1 - polarity control is available, 0 - unavailable)  
- number of hardware trigger sources (see TriggerSource)  
- presence of the software trigger (1 - available, 0 - unavailable)  
- presence of the TriggerDelay control (1 - available, 0 - unavailable)  
 
Return Values

S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB example retrieves the available trigger modes and initializes a corresponding combo box:

Private Sub
 Form_Load()
TriggerInfo = ActiveDcam1.GetTriggerInfo
Modes=TriggerInfo(1)
k=1
For
 i = 0 
To
 15
if Modes And k then
Combo1.AddItem ("Mode " + 
cstr(i))
endif
k=k*2
Next
Combo1.ListIndex = 0
End Sub

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


Remarks

Use this method to implement custom trigger-related controls.