Get the currently set sensor type.
Ret = SsiGetSensorType ( Id , ChannelNo , &SensorType )
Id
[ C, C++: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved from SsiInit.
ChannelNo
[ C, C++: short ] [ Python: ctypes.c_short ]
CPSN-SSI-4C is common setting for all channels. Please specify 0.
SensorType
[ C, C++: short *] [ Python: ctypes.POINTER(ctypes.c_short) ]
Specify the address of the variable that stores the sensor type.
Ret [ C, C++: long ] [ Python: ctypes.c_long ]
Definition |
Value [Dec] |
Description |
SSI_ERR_SUCCESS |
0 |
Succeeded |
SSI_ERR_DLL_INVALID_ID |
10001 |
Invalid device id. |
SSI_ERR_DLL_CALL_DRIVER |
10002 |
Can not call driver (ioctl failed). |
SSI_ERR_DLL_BUFF_ADDRESS |
10100 |
Invalid data buffer address. |
SSI_ERR_SYS_CH_NO |
20100 |
Channel No. is outside the setting range. |
The others (See also: Details of Error Code)
Get the currently set sensor type.
Get the sensor type set on the device.
C, C++ |
long
Ret; |
Python |
Ret = ctypes.c_long() |