Input the temperatures from multiple channels.
Ret = SsiMultiInputTemperature ( Id , &ChannelNo , ChannelNum , &Temperature , &InputStatus )
Id
[ C, C++: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved from SsiInit.
ChannelNo
[ C, C++: short * ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Store the input channel number in an array and specify the base address
of that array.
ChannelNum
[ C, C++: short ] [ Python: ctypes.c_short ]
Set the number of elements in the array (number of channels) specified
by ChannelNo.
Temperature
[ C, C++: float *] [ Python: ctypes.POINTER(ctypes.c_float) ]
Specify the address of an array that stores the temperatures.
InputStatus
[ C, C++: unsigned int *] [ Python: ctypes.POINTER(ctypes.c_uint)
]
Specify the address of an array that stores the input status.
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. |
SSI_ERR_SYS_DISABLE_CH |
20104 |
Disabled channel number. |
SSI_ERR_SYS_SENSOR_FAULT |
20105 |
Sensor input data is abnormal. |
The others (See also: Details of Error Code)
Input the temperatures and status from multiple channels at once.
Input the temperatures and status for Ch0 to Ch3 at once.
C, C++ |
long
Ret;
ChannelNo[0] = 0; ChannelNo[1] = 1; |
Python |
Ret = ctypes.c_long() InputStatusType = ctypes.c_uint()
* 4
ChannelNo[0] = 0 |