API Functions54
Copyright © 2006–2016 Pico Technology Ltd. All rights reserved.ps2000pg.en r11
5.33
ps2000_stop
int16_t ps2000_stop
(
int16_t handle
)
Call this function to stop the oscilloscope sampling data.
When running the device in streaming mode, you should always call this function after
the end of a capture to ensure that the scope is ready for the next capture.
When running the device in block mode or ETS mode, you can call this function to
interrupt data capture.
Note that if you are using block mode or ETS mode and call this function before the
oscilloscope is ready, no capture will be available and the driver will not return any
samples.
handle: the handle of the required oscilloscope
0: if an invalid handle is passed
non-zero: if successful
5.34
my_get_overview_buffers
void my_get_overview_buffers
(
int16_t
int16_t
uint32_t
int16_t
int16_t
uint32_t
**overviewBuffers,
overflow,
triggeredAt,
triggered,
auto_stop,
nValues
)
This is the callback function in your application that receives data from the driver in
fast streaming mode. You pass a pointer to this function to
ps2000_get_streaming_last_values, which then calls it back when the data is
ready. Your callback function should do nothing more than copy the data to another
buffer within your application. To maintain the best application performance, the
function should return as quickly as possible without attempting to process or display
the data.
The function name my_get_overview_buffers is arbitrary. When you write this
function, you can give it any name you wish. The PicoScope driver does not need to
know your function's name, as it refers to it only by the pointer that you pass to
ps2000_get_streaming_last_values.
For an example of a suitable callback function, see the programming examples
included in the Pico Technology SDK.