ADC 10 User's Guide Page 11

  • Download
  • Add to my manuals
  • Print
  • Page
    / 24
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 10
Driver Formats & Routines
9
Copyright © 1995-2007 Pico Technology. All rights reserved. adc1042.en-2
You can specify a sampling interval from 50 µs to a second. If you specify an interval
that is shorter than your computer can manage, the driver will tell you how long it will
actually take to collect the specified number of samples.
Under Windows, if you connect the product to the computer via a Pico USB parallel
port, timing is completely reliable. However, if you connect the product to the
computer via the printer port, the sampling may be affected by Windows activities. At
the least, there will be gaps in the data every 55 milliseconds due to the Windows
timer function. There will be additional gaps if you move the mouse, or have other
programs running. We therefore recommend using the
adc10_get_times_and_values routine, so that you can determine the exact time
that each reading was taken.
The normal calling sequence to collect a block of data is as follows:
1. Check that the driver version is correct
2. Open the driver
3. Set trigger mode (if required)
4. Set sampling mode (channels and time per sample)
5. While you want to take measurements,
6. Run
7. While not ready
8. Wait
9. End while
10. Get a block of data
11. End while
12. Close the driver
4.1
Driver Formats
4.1.1
Windows XP/Vista
The Windows NT parallel port driver, PICO.SYS, is installed in Windows. The operating
system must be told that the driver is available: this is normally done automatically
by the setup program, but can also be done manually using the the regdrive.exe
program which is copied into the PICO directory.
Type in:
regdrive pico
The Windows USB port driver, PICOPP.SYS, is installed in Examples. The file
picopp.inf, must be placed in so that Windows knows which driver to load when the
USB parallel port is plugged in.
The Windows 32-bit driver is accessed using the file ADC1032.DLL, and is installed in
Examples. The DLL uses STDCALL linkage conventions, and undecorated names. The
same ADC1032.dll file can be used in all 32-bit versions of Windows, for both parallel
port and USB port connected products.
4.1.2
Linux
The ADC-10/12/40/42 are supported under Linux using the picopar parallel port
driver kit. The tar file picopar.tar, available from the Pico web site, contains source
code for the driver and example programs, together with full instructions to compile,
install and run the software.
Page view 10
1 2 ... 6 7 8 9 10 11 12 13 14 15 16 ... 23 24

Comments to this Manuals

No comments