Pico Communications PicoScope 2105, PicoScope 2104 manual 4 ps2000gettimesandvalues

Page 13

Technical reference

3.3.4 ps2000_get_times_and_values

long ps2000_get_times_and_values(

short

handle,

 

long

* times,

 

short

* buffer_a,

 

short

* buffer_b,

 

short

* buffer_c,

 

short

* buffer_d,

 

short

* overflow,

 

short

time_units,

 

long

no_of_values )

11

This function is used to get values and times. It will not return any valid times if the unit is in streaming mode. It is essential for ETS operation.

Arguments

handle, the handle to the required device.

 

times, 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, pointer to the buffer that receives data from the

 

oscilloscope. If the pointer is NULL, nothing will be written to it. See

 

Scaling for details of data format.

 

buffer_b,

 

buffer_c,

 

buffer_d, not used

 

overflow. Bit 0 indicates whether an overflow has occurred.

 

time_units, which can be one of the following:

 

PS2000_FS (0) = femtoseconds,

 

PS2000_PS (1) = picoseconds,

 

PS2000_NS (2) = nanoseconds (default),

 

PS2000_US (3) = microseconds,

 

PS2000_MS (4) = milliseconds, or

 

PS3000_S (5) = seconds.

 

no_of_values,the number of data points to return. In streaming

 

mode, this is the maximum number of values to return.

 

 

Returns

The actual number of data values returned, which may be less than

 

the no_of_values if streaming.

 

0 is returned if one or more of the parameters are out of range or if

 

the times will overflow with the time_units requested. Use

 

ps2000_get_timebase() in order to acquire the most suitable

 

time_units.

 

 

Copyright 2006 Pico Technology Limited. All rights reserved.

PS2100044-1.0

Image 13
Contents PicoScope 2104 Table of Contents Introduction Safety symbolsOverview IntroductionFCC notice Safety warningLicence conditions CE noticeTrademarks WarrantyCompany details AddressMinimum system requirements Product informationChecking the installation Installation instructionsInput connector Connectors and controlsSpecifications Technical reference Driver error codesDriver 1 ps2000closeunit Functions2 ps2000flashled 3 ps2000gettimebase 4 ps2000gettimesandvalues Information returned Example 5 ps2000getunitinfo7 ps2000lastbuttonpress 6 ps2000getvalues9 ps2000ready 8 ps2000openunitPs2000runblock 11 ps2000runstreaming Code Enumeration Range Ps2000setchannel13 ps2000setets 15 ps2000stop Ps2000settriggerMore on block mode Advanced featuresSampling modes Triggering More on streaming modeETS Equivalent Time Sampling Voltage rangesOversampling 7 AC/DC operationScaling Reading VoltageCombining oscilloscopes Using block mode Using different modesUsing streaming mode Using ETS mode1 C ProgrammingGUI example Console exampleDelphi Visual BasicExcel Agilent VEESoftware error codes TroubleshootingGlossary Streaming mode Real-time continuous modeGlossary PicoScope software TimebaseETS IndexUSB IndexInterworld Electronics & Computers Inc