API Functions
37
Copyright © 2006–2022 Pico Technology Ltd. All rights reserved.
ps2000pg.en-12
PicoScope 2000 Series Programmer's Guide
5.17
ps2000_run_block
int16_t ps2000_run_block
(
int16_t handle,
int32_t no_of_samples,
int16_t timebase,
int16_t oversample,
int32_t *time_indisposed_ms
)
This function tells the oscilloscope to start collecting data in
Applicability
Arguments
handle
: the oscilloscope of the required oscilloscope
no_of_samples
: the number of samples to return
timebase
: a code between 0 and the maximum timebase available
(consult the driver header file). Timebase 0 gives the maximum sample rate
available, timebase 1 selects a sample rate half as fast, timebase 2 is half as
fast again and so on. For the maximum sample rate, see the specifications
for your oscilloscope. The number of channels enabled may affect the
availability of the fastest timebases.
oversample
: the oversampling factor, a number between 1 and 256. See
time_indisposed_ms
: a pointer to the approximate time, in milliseconds,
that the ADC will take to collect data. If a trigger is set, it is the amount of
time the ADC takes to collect a block of data after a trigger event,
calculated as (sample interval) x (number of points required). The actual
time may differ from computer to computer, depending on how quickly the
computer can respond to I/O requests.
Returns
0: if one of the parameters is out of range
non-zero: if successful
Содержание PicoScope 2000 Series
Страница 1: ...Programmer s Guide ps2000pg en 12 PC Oscilloscopes PicoScope 2000 Series ...
Страница 2: ......
Страница 67: ......