CameraUnplugged
Top  Previous  Next

Description

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


Syntax


[VB]
Private Sub objActiveUSB_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 ActiveUSB1_CameraUnplugged(ByVal Camera As Integer)  
If ActiveUSB1.Camera = Camera Then  
MsgBox "Currently selected camera has been disconnected"  
End If  
End Sub