API Functions
38
Copyright © 2006–2022 Pico Technology Ltd. All rights reserved.
ps2000pg.en-12
PicoScope 2000 Series Programmer's Guide
5.18
ps2000_run_streaming
int16_t ps2000_run_streaming
(
int16_t handle,
int16_t sample_interval_ms,
int32_t max_samples,
int16_t windowed
)
This function tells the oscilloscope to start collecting data in
. If this
function is called when a trigger has been enabled, the trigger settings will be ignored.
For streaming with the PicoScope 2202, 2203, 2204, 2204A, 2205 and 2205A variants, we
recommend you use
instead: this will allow much faster data
transfer.
Applicability
Only recommended for use with PicoScope 2104 and 2105
Arguments
handle
: the handle of the required oscilloscope
sample_interval_ms
: the time interval, in milliseconds, between data
points. This can be no shorter than 1 ms.
max_samples
: the maximum number of samples that the driver is to
store. This can be no greater than 60 000. It is the application's
responsibility to retrieve data before the oldest values are overwritten.
windowed
: if this is
0,
only the values taken since the last call to
1
, the number of values
are returned, even if they have already
Returns
non-zero: if streaming has been enabled correctly
0
: if a problem occurred or a value was out of range
Summary of Contents for PicoScope 2000 Series
Page 1: ...Programmer s Guide ps2000pg en 12 PC Oscilloscopes PicoScope 2000 Series ...
Page 2: ......
Page 67: ......