Pico Communications PicoScope 2104, PicoScope 2105 manual 3 ps2000gettimebase

Page 12
time_units

10

PicoScope 2104 & 2105 PC Oscilloscope User Guide

3.3.3 ps2000_get_timebase

short ps2000_get_timebase (

short

handle,

 

short

timebase,

 

long

no_of_samples,

 

long

* time_interval_ns,

 

short

* time_units,

 

short

oversample,

 

long

* max_samples)

This function discovers which timebases are available on the oscilloscope. This function should be called after channel and ETS options have been set.

Arguments

handle, the handle to the required device.

timebase, a code between 0 and the maximum timebase number (depending on variant). Timebase 0 is the fastest timebase, equal to the maximum sampling frequency () given in the Specifications. Each successive timebase is half the frequency of the previous one. , the sampling frequency, is given by:

no_of_samples, the number of samples required. This value is used to calculate the most suitable time unit to use.

time_interval_ns, a pointer to the time interval, in nanoseconds, between readings at the selected timebase. If a null pointer is passed, nothing will be written here.

time_units, a pointer to the most suitable time units to return data in, when calling ps2000_get_times_and_values(). A list of values

foris given under ps2000_get_times_and_values(). If a null pointer is passed, nothing will be written here.

oversample, the oversampling factor required, between 1 and 256. See oversampling for an explanation.

max_samples, a pointer to the maximum number of samples available. The number may vary depending on the number of channels enabled, the timebase chosen and the oversample selected. If this pointer is null, nothing will be written here.

Returns

1 if all parameters are in range, otherwise 0.

PS2100044-1.0

Copyright 2006 Pico Technology Limited. All rights reserved.

Image 12
Contents PicoScope 2104 Table of Contents Safety symbols IntroductionOverview IntroductionSafety warning FCC noticeCE notice Licence conditionsWarranty TrademarksCompany details AddressProduct information Minimum system requirementsInstallation instructions Checking the installationInput connector Connectors and controlsSpecifications Driver error codes Technical referenceDriver Functions 1 ps2000closeunit2 ps2000flashled 3 ps2000gettimebase 4 ps2000gettimesandvalues 5 ps2000getunitinfo Information returned Example6 ps2000getvalues 7 ps2000lastbuttonpress8 ps2000openunit 9 ps2000readyPs2000runblock 11 ps2000runstreaming Ps2000setchannel Code Enumeration Range13 ps2000setets Ps2000settrigger 15 ps2000stopAdvanced features More on block modeSampling modes More on streaming mode TriggeringETS Equivalent Time Sampling Voltage ranges7 AC/DC operation OversamplingScaling Reading VoltageCombining oscilloscopes Using different modes Using block modeUsing streaming mode Using ETS modeProgramming 1 CGUI example Console exampleVisual Basic DelphiExcel Agilent VEETroubleshooting Software error codesGlossary Real-time continuous mode Streaming modeGlossary PicoScope software TimebaseIndex ETSIndex USBInterworld Electronics & Computers Inc