ADC-10,12,40,42 User's Guide8
Copyright © 1995-2007 Pico Technology. All rights reserved.adc1042.en-2
4
Driver Formats & Routines
The ADC-10, ADC-12, ADC-40 and ADC-42 are supplied with driver routines that you
can build into your own programs. Drivers are provided for the following operating
systems:
Windows XP
Windows Vista
Linux
Once you have installed the software, the Examples subdirectory contains the drivers
and a selection of examples of how to use the drivers. It also contains a copy of this
help file in text format.
The driver routine is supplied as Dynamic Link Libraries for Windows.
The Windows DLLs can be used with any programming language or application that
can interface with DLLs- for example, C, Delphi, Visual Basic, Excel, Labview, etc. The
Examples directory contains example programs for several popular programming
languages or applications: some of these examples are fairly simple, but the C console
mode example, adc10con.c, shows how to use all facilities in the driver.
The driver is capable of supporting up to three parallel port units (one each on LPT1,
LPT2 and LPT3), and up to four Pico USB parallel port units. The units can be any
mixture of ADC-10, ADC-12, ADC-40 and ADC-42.
The following table specifies the function of each of the routines in the Windows
drivers:
Check that this is the correct driver
Open the driver to use a specified parallel port
Select which ADC-10 unit to use
Close the specified printer port
a single reading and the time
the time interval for the next call to adc10_get_values,
or adc10_get_times_and_values
Check whether the device supports streaming (USB
only)
Check whether the data recording is completed
a block of readings at fixed intervals
adc10_get_times_and_values
Get a block of readings and their times, at fixed
intervals
Get information about an ADC10 unit
The driver offers the following facilities:
specify the printer port or USB parallel port that is connected to the ADC
take a single reading
specify a trigger event (only available in block mode)
collect a block of samples at fixed time intervals
Comments to this Manuals