CameraUnplugged
Top  Previous  Next

Description

This event is fired each time a GigE Vision™ camera gets disconnected from the system.


Syntax


[VB]
Private Sub objActiveGige_CameraUnplugged(ByVal Camera As Integer)


[C/C++]
HRESULT Fire_CameraUnplugged(SHORT Camera);


Data Types
[VB]

Camera: Integer  


Parameters
[C/C++]

Camera  
The index of the camera that has been disconnected.  
 

Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB example uses the CameraUnplugged to detect when the currently selected camera is unplugged:

Private Sub ActiveGige1_CameraUnplugged(ByVal Camera As Integer)  
If ActiveGige1.Camera = Camera Then  
MsgBox "Currently selected camera has been disconnected"  
End If  
End Sub