Get the number of channels for the device.
Ret = SsiGetMaxChannels ( Id , &ChannelNum )
Id
[ C, C++: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved from SsiInit.
ChannelNum
[ C, C++: short * ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Specify the variable address for storing the number of channels.
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. |
The others (See also: Details of Error Code)
None
Get the number of channels for the device.
C, C++ |
long
Ret; |
Python |
Ret = ctypes.c_long() ChannelNum = ctypes.c_short() Ret.value = cssi.SsiGetMaxChannels(Id,
ctypes.byref(ChannelNum)) |
None