Pico Communications PicoScope 2105, PicoScope 2104 6 ps2000getvalues, 7 ps2000lastbuttonpress

Page 15

Technical reference

13

3.3.6 ps2000_get_values

long ps2000_get_values(

short

handle,

 

short

* buffer_a,

 

short

* buffer_b,

 

short

* buffer_c,

 

short

* buffer_d,

 

short

* overflow,

 

long

no_of_values )

This function is used to get values. It does nothing if ETS triggering is enabled.

Arguments

handle, the handle to the required device.

 

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 values.

 

buffer_b,

 

buffer_c,

 

buffer_d, unused pointers

 

overflow. The least-significant bit indicates whether an overflow has

 

occurred.

 

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

 

no_of_values if streaming. FALSE is returned if one of the parameters

 

is out of range.

 

 

3.3.7ps2000_last_button_press

short ps2000_last_button_press ( short handle )

This function returns the last registered state of the pushbutton on the PicoScope 2104 or 2105 PC Oscilloscope and then resets the status to zero.

Arguments

handle - handle of the device

 

 

 

Returns

0

– No button press registered

 

1

– Short button press registered

 

2

– Long button press registered

 

 

 

Copyright 2006 Pico Technology Limited. All rights reserved.

PS2100044-1.0

Image 15
Contents PicoScope 2104 Table of Contents Introduction Safety symbolsIntroduction OverviewFCC notice Safety warningLicence conditions CE noticeAddress WarrantyTrademarks Company detailsMinimum system requirements Product informationConnectors and controls Installation instructionsChecking the installation Input connectorSpecifications Driver error codes Technical referenceDriver Functions 1 ps2000closeunit2 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 Ps2000settriggerAdvanced features More on block modeSampling modes Voltage ranges More on streaming modeTriggering ETS Equivalent Time SamplingReading Voltage 7 AC/DC operationOversampling ScalingCombining oscilloscopes Using ETS mode Using different modesUsing block mode Using streaming modeConsole example Programming1 C GUI exampleAgilent VEE Visual BasicDelphi ExcelSoftware error codes TroubleshootingGlossary Timebase Real-time continuous modeStreaming mode Glossary PicoScope softwareETS IndexUSB IndexInterworld Electronics & Computers Inc