EasyManuals Logo
Home>pico Technology>Test Equipment>PicoScope 2200A Series

pico Technology PicoScope 2200A Series Programmer's Guide

pico Technology PicoScope 2200A Series
55 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #7 background imageLoading...
Page #7 background image
Programming the 2000 Series Oscilloscopes4
Copyright © 2006–2016 Pico Technology Ltd. All rights reserved.ps2000pg.en r11
2 Programming the 2000 Series Oscilloscopes
2.1
General procedure
The ps2000.dll library in your PicoScope installation directory allows you to program
a PicoScope 2000 Series oscilloscope using standard C function calls.
A typical program for capturing data consists of the following steps:
Open the oscilloscope.
Set up the input channels with the required voltage ranges and coupling mode.
Set up triggering.
Start capturing data. (See Sampling modes, where programming is discussed in
more detail.)
Wait until the oscilloscope is ready.
Copy data to a buffer.
Stop capturing data.
Close the oscilloscope.
Numerous sample programs are included in the SDK. These show how to use the
functions of the driver software in each of the modes available.
2.2
Driver
Your application will communicate with a PicoScope 2000 API driver called
ps2000.dll, which is supplied in 32-bit and 64-bit versions. The driver exports the
ps2000 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 API driver depends on a low-level driver called WinUsb.sys (supplied in 32-bit
and 64-bit versions), which is installed by the SDK and configured when you plug the
oscilloscope into each USB port for the first time. Your application does not call this
driver directly.
2.3
Voltage ranges
You can set the gain for each channel with the ps2000_set_channel function. The
input voltage ranges available depend on the oscilloscope model.
The driver scales all readings to 16 bits, regardless of the voltage range the
oscilloscope is set to. The following table shows the relationship between the reading
from the driver and the signal level.
Constant
Reading
Voltage
decimal
PS2000_LOST_DATA
-32 768
Indicates a buffer overrun in fast
streaming mode.
PS2000_MIN_VALUE
-32 767
Negative full scale
0
0
Zero volts
PS2000_MAX_VALUE
32 767
Positive full scale

Other manuals for pico Technology PicoScope 2200A Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the pico Technology PicoScope 2200A Series and is the answer not in the manual?

pico Technology PicoScope 2200A Series Specifications

General IconGeneral
Brandpico Technology
ModelPicoScope 2200A Series
CategoryTest Equipment
LanguageEnglish

Related product manuals