Installation guide
API functions34
Copyright © 2008-2014 Pico Technology Ltd. All rights reserved.ps4000apg.en r1
4.15
ps4000aGetTimebase
PICO_STATUS ps4000aGetTimebase
(
int16_t handle,
uint32_t timebase,
int32_t noSamples,
int32_t * timeIntervalNanoseconds,
int32_t * maxSamples
uint32_t segmentIndex
)
This function discovers which timebases are available on the oscilloscope. You should
set up the channels using ps4000aSetChannel first.
Applicability
All modes
Arguments
handle, the handle of the required device.
timebase, a code between 0 and 2
32
–1 that specifies the sampling
interval (see Timebases).
noSamples, the number of samples required. This value is used to
calculate the most suitable time unit to use.
* timeIntervalNanoseconds, on exit, the time interval between
readings at the selected timebase. If a null pointer is passed, nothing
will be written here.
* maxSamples, on exit, the maximum number of samples
available. This 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.
segmentIndex, the number of the memory segment to use.
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_TOO_MANY_SAMPLES
PICO_INVALID_CHANNEL
PICO_INVALID_TIMEBASE
PICO_INVALID_PARAMETER