ADC 10 User's Guide Page 10

  • Download
  • Add to my manuals
  • Print
  • Page
    / 24
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 9
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:
Routine
Function
adc10_get_driver_version
Check that this is the correct driver
adc10_open_unit
Open the driver to use a specified parallel port
adc10_set_unit
Select which ADC-10 unit to use
adc10_close_unit
Close the specified printer port
adc10_get_value
a single reading
adc10_get_value_and_time
a single reading and the time
adc10_set_trigger
Set a trigger event
adc10_set_interval
the time interval for the next call to adc10_get_values,
or adc10_get_times_and_values
adc10_is_streaming
Check whether the device supports streaming (USB
only)
adc10_run
Start the unit recording
adc10_ready
Check whether the data recording is completed
adc10_stop
Abort data collection
adc10_get_values
a block of readings at fixed intervals
adc10_get_times_and_values
Get a block of readings and their times, at fixed
intervals
adc10_get_unit_info
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
Page view 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 23 24

Comments to this Manuals

No comments