Herunterladen Inhalt Inhalt Diese Seite drucken

Programming - PICO PicoScope 3204 Handbuch

Series picoscope 3000
Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

This function is used to get values and times. This function will not return any valid times if the
oscilloscope is in
Arguments
Returns
5.3

Programming

5.3.1
C
There are two C example programs: one is a simple GUI application, and the other is a more
comprehensive console mode program that demonstrates all of the facilities of the driver.
The GUI example program is a generic Windows application - ie it does not use Borland AppExpert
or Microsoft AppWizard. To compile the program, create a new project for an Application containing
the following files:
ps3000.c
ps3000.rc
ps3000bc.lib
Copyright 2005 Pico Technology Limited. All rights reserved.
streaming
mode. This function is essential for ETS operation.
handle, the handle to the required device.
times, this is a pointer to the buffer for the times. Each time is the interval
between the trigger event and the corresponding sample. Times before the
trigger event are negative, and times after the trigger event are positive.
buffer_a, this is a pointer to the buffer to put data from channel A into. It is
unused if the oscilloscope is collecting only from channel B. If the pointer is
NULL, nothing will be written here.
buffer_b, this is a pointer to the buffer to put data from channel B into, It is
unused if the oscilloscope is collecting only from channel A. If the pointer is
NULL, nothing will be written here.
buffer_c, for future use -set to NULL.
buffer_d, for future use -set to NULL.
overflow, a bit pattern indicating whether an overflow has occurred on a
channel, bit 0 overflow on channel A, bit 1 is an overflow on channel B, bit 2 is
an overflow on channel C and bit 3 is an overflow on channel D. Where bit0 is
the LSB.
time_units, which can be one of:
(2),
PS3000_NS
PS3000_US
femto seconds, pico seconds, nano seconds (default), micro seconds, milli
seconds and seconds respectively.
no_of_values. The number of data points to return. In streaming mode, this is
the maximum no of values to return.
The actual number of data values per channel returned which may be less than
the
no_of_values
is returned if one or more of the parameters are out of range or if the times will
0
overflow with the
time_units
to acquire the most suitable time_units.
;
; and
(Borland 32-bit applications); or
short * buffer_c,
short * buffer_d,
short * overflow,
short time_units,
long no_of_values)
PS3000_FS
(3),
PS3000_MS
if streaming.
requested. Use
Technical reference
(0),
(1),
PS3000_PS
(4) or
(5) which are
PS3000_S
ps3000_get_timebase
22
in order

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

Picoscope 3205Picoscope 3206

Inhaltsverzeichnis