ICP DAS USA IM-100 Manual Do Utilizador

Página de 109
IMC_InputPort_ReadAll 
 
escription: 
eads the state for both Input Ports. The camera needs be initialized 
arameters: 
e 
The handle for MAVIS camera. Use the handle gotten from the 
pValue 
 states of all Input 
ORT_0 and Byte1 
Return: 
RROR_SUCCESSFUL Successfully 
AMERA_CREATE 
The Camera_Handle is NULL. 
 not been initialized. 
 
Syntax: 
Visual C++ 6.0 / Boland C++ Builder 6.0: 
short IMC_InputPort_ReadAll ( HANDLE Camera_Handle, unsigned long* pValue); 
Visual Basic 6.0 
IMC_InputPort_ReadAll (ByVal Camera_Handle As Long, ByRef pValue As Long) As 
Integer 
C#.NET 2003 
Mavis.IMC_InputPort_ReadAll( IntPtr Camera_Handle, out ulong pValue ); 
 
D
This function r
with IMC_Camera_Init(). 
 
P
Camera_Handl
pHandle’ parameter of IMC_Camera_Init(). 
The pointer to the memory that combines the
Ports. The Byte0 contains state of INPUT_P
contains state of INPUT_PORT_1. 
 
E
ERROR_C
ERROR_DEVICE_UNINIT 
The specific camera has
ERROR_INVALID_CAMERA
The handle is invalid. 
 - 
81