C7557-01 DLL INSTRUCTION MANUAL
8
HAMAMATSU PHOTONICS K.K.
5-3 CHECKING CONNECTED DEVICES
Check that MCD controllers are connected for the specified USB ID numbers. The status
information is returned in the argument if a device is connected. If devices are connected
the return value is 1. If no device is connected the return value is 0x1001. An error is
returned in other cases.
Function name
WORD CheckSensor(ID, Status)
Format
WORD CheckSensor(WORD, SENSOR_STATUS*);
Arguments
ID
USB ID number
Specify the USB ID number of the connected device to be checked.
Status
MCD controller status information.
Specify the pointer for the SENSOR_STATUS structure.
typedef struct tag_SENSOR_STATUS
{
int nSensorType;
/* sensor type */
int nHPixel;
/* number of horizontal pixels */
int nVPixel;
/* number of vertical pixels */
int nADType;
/* A/D type */
} SENSOR_STATUS;
Return code
0x01 Normal
completion
0x1001 No
connected