User Manual

USB PT-104 Data Logger Programmer's Guide 3
Copyright © 2010-2011 Pico Technology Ltd. All rights reserved. usbpt104pg.en
2 Driver information
2.1
Introduction
The PT-104 is supplied with driver routines that you can build into your own
programs.
Once you have installed the software, the Drivers directory contains the drivers and
a selection of examples of how to use the drivers. It also contains a copy of this
manual as a PDF file.
The driver routine is supplied as a Windows DLL.
The Windows DLL can be used with C, C++, Delphi and Visual Basic programs: it can
also be used with programs like Microsoft Excel, which uses Visual Basic for
Applications (VBA) as its macro programming language. More than one application
can access the Windows DLL at the same time, as long as the applications do not
change the settings for channels that they are not using.
These are the routines in the driver:
UsbPt104CloseUnit
Close the port (do this each time you finish using the
device!)
UsbPt104Enumerate
Get list of attached devices.
UsbPt104GetUnitInfo
Get the batch number and serial number, or the
calibration date, of this PT-104 Data Logger.
UsbPt104GetValue
Get the most recent data reading from a channel.
UsbPt104IpDetails
Read or write IP settings.
UsbPt104OpenUnit
Open the device through its USB interface.
UsbPt104OpenUnitViaIp
Open the device through its Ethernet interface.
UsbPt104SetChannel
Specify the sensor type and filtering for a channel.
UsbPt104SetMains
Change the mains noise filtering setting to 60 Hz. The
default is 50 Hz.
The normal calling sequence for these routines is as follows:
1. Open Driver
2. Set Channels
3. While you want to read data
4. Get data
5. End While
6. Close Unit
7. Close Driver
2.2
Installing the driver
The driver is installed automatically when you install the PicoLog software.
Alternatively, you can download the driver from our website at:
http://www.picotech.com.