Function
Get the number of channels for the device.
Format
Ret = SsiGetMaxChannels ( Id , &ChannelNum )
Parameters
Id
[ C: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved from SsiInit.
ChannelNum
[ C: short * ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Specify the variable address for storing the number of channels.
Return Value
Ret [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)
Initial Value
None
Remarks
Get the number of channels for the device.
Example
C |
long
Ret; |
Python |
Ret = ctypes.c_long() ChannelNum = ctypes.c_short() Ret.value = cssi.SsiGetMaxChannels(Id,
ctypes.byref(ChannelNum)) |
See Also
None