PicoScope 2000 Series Programmer's Guide 29
Copyright © 2006–2016 Pico Technology Ltd. All rights reserved. ps2000pg.en r11
5.13
ps2000_open_unit_progress
int16_t ps2000_open_unit_progress
(
int16_t *handle,
int16_t *progress_percent
)
This function checks on the progress of ps2000_open_unit_async.
All modes
Use only with ps2000_open_unit_async
handle: a pointer to where the function should store the handle of
the opened oscilloscope
0 if no oscilloscope is found or the oscilloscope fails to open,
handle of oscilloscope (valid only if function returns 1)
progress_percent: a pointer to an estimate of the progress
towards opening the oscilloscope. The function will write a value
from 0 to 100, where 100 implies that the operation is complete.
>0: if the driver successfully opens the oscilloscope
0: if opening still in progress
-1: if the oscilloscope failed to open or was not found
5.14
ps2000_overview_buffer_status
int16_t ps2000_overview_buffer_status
(
int16_t
int16_t
handle,
*previous_buffer_overrun
)
This function indicates whether or not the overview buffers used by
ps2000_run_streaming_ns have overrun. If an overrun occurs, you can choose to
increase the overview_buffer_size argument that you pass in the next call to
ps2000_run_streaming_ns.
Applicability Fast streaming mode only
PicoScope 2202, 2203, 2204, 2204A, 2205 and 2205A only
Not compatible with ETS triggering - function has no effect in ETS
mode
Arguments handle: the handle of the required oscilloscope
previous_buffer_overrun: a pointer to a Boolean indicating
whether the overview buffers have overrun. The function will write a
non-zero value to indicate a buffer overrun.
Returns 0: if the function was successful
1: if the function failed due to an invalid handle