sBuf="ABCD" pstr=ctypes.c_char_p() pstr.value=sBuf.encode() aa=ctypes.c_ushort() print('pstr',type(pstr)) print('aa',type(aa)) #Init_Device(char *IDCode,unsigned short int *iRet); print(lib.Init_Device(pstr,byref(aa))) print(lib.Release_Device())
* daemon not running. sta