API Functions
38Copyright © 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 compatible streaming mode. 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 ps2000_run_streaming_ns instead: this will allow much faster data
transfer.
Only recommended for use with PicoScope 2104 and 2105
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
ps2000_get_values are returned. If this is 1, the number of values
requested by ps2000_get_values are returned, even if they have already
been read by ps2000_get_values.
non-zero: if streaming has been enabled correctly
0: if a problem occurred or a value was out of range