User manual

Programming with the PicoScope 6000 Series6
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved.ps6000pg.en r9
3 Programming with the PicoScope 6000 Series
The ps6000.dll dynamic link library in your PicoScope installation directory allows
you to program a PicoScope 6000 Series oscilloscope using standard C function calls.
A typical program for capturing data consists of the following steps:
Open the scope unit.
Set up the input channels with the required voltage ranges and coupling type.
Set up triggering.
Start capturing data. (See Sampling modes, where programming is discussed in
more detail.)
Wait until the scope unit is ready.
Stop capturing data.
Copy data to a buffer.
Close the scope unit.
Numerous sample programs are included in the SDK. These demonstrate how to use
the functions of the driver software in each of the modes available.
3.1
Driver
Your application will communicate with a PicoScope 6000 API driver called
ps6000.dll. The driver exports the PicoScope 6000 function definitions in standard
C format, but this does not limit you to programming in C. You can use the API with
any programming language that supports standard C calls.
The following low-level drivers are installed by the PicoScope 6 software when you
plug the PicoScope 6000 Series oscilloscope into the computer for the first time. Your
application does not call these drivers directly.
USB 2.0
The API driver depends on a kernel driver, picopp.sys, which works with Windows
XP, Windows Vista, Windows 7 and Windows 8. There is a further low-level driver
called WinUsb.sys.
USB 3.0
The API driver depends on a kernel driver, cyusb3.sys, which works with Windows
XP, Windows Vista, Windows 7. The Windows 8 driver is WinUsb.sys.
3.2
System requirements
General requirements
See System Requirements.
USB
The PicoScope 6000 driver offers three different methods of recording data, all of
which support USB 1.1, USB 2.0, and USB 3.0. Currently only our C and D models are
able to make use of the fastest transfer rates via USB 3.0. For other models, USB 2.0
offers the fastest transfer rates.