Are there any programming examples to set up the PT104 using Python? I was able to load the .dll file and found the post from topic23281.html but a more explicit example that shows how to use the GetUnitInfo fuction would be helpful.
# define function argument types
mydll.UsbPt104CloseUnit.argtypes = [ctypes.c_short] #Close the port (do this each time you finish using the device!)
mydll.UsbPt104Enumerate.argtypes = [ctypes.POINTER(ctypes.c_char),ctypes.POINTER(ctypes.c_ulong),CommunicationType] #Get list of attached devices.
mydll.UsbPt104GetUnitInfo.argtypes = [ctypes.c_short, ctypes.POINTER(ctypes.c_char), ctypes.c_short, ctypes.POINTER(ctypes.c_short),PICO_INFO] #Get the batch number and serial number, or the calibration date, of this PT-104 Data Logger.
mydll.UsbPt104GetValue.argtypes = [ctypes.c_short, UsbPt104Channels, ctypes.POINTER(ctypes.c_long), ctypes.c_short] #Get the most recent data reading from a channel.
mydll.UsbPt104OpenUnit.argtypes = [ctypes.POINTER(ctypes.c_short), ctypes.POINTER(ctypes.c_char)] #Open the device through its USB interface.
mydll.UsbPt104SetChannel.argtypes = [ctypes.c_short, UsbPt104Channels, UsbPt104DataTypes, ctypes.c_short] #Specify the sensor type and filtering for a channel.
mydll.UsbPt104SetMains.argtypes = [ctypes.c_short, ctypes.c_ushort]
i just want you to notice that i wrote a wrapper library for python based on the code from forum_name above and code from gruenst from topic31981.html. The git repository can be found at: https://github.com/trombastic/Pico_PT104 comments are welcome.