PicoScope 7 Software
Available on Windows, Mac and Linux
PicoScope 7 Software
Available on Windows, Mac and Linux
OEM & custom applications
PicoScope, Pico data logger and RF products can be used as components in custom applications and OEM projects.
A to Z of PC oscilloscopes
Everything you need to know about PC oscilloscopes from Advanced Triggers to Zooming.
A to Z of Data Loggers
Everything you need to know about PC-based data loggers from Alarms to Zooming.
Application Notes
Details of some of the many applications for Pico data logger and oscilloscope products.
How do I measure...?
Find out how you can measure using Pico products
Videos
Showing you how to get the most out of PicoScope oscilloscope software.
Documentation
Up-to-date versions of the documentation supplied with your products in PDF format.
Educational Experiments
Our library of science experiments suitable for use with oscilloscope and data logging products.
PicoApps
Want to share hints, tips and code with other developers? Show your Pico-based products to the world.
Newsletter
Archive of our monthly Test and Measurement Newsletters.
Post by Hitesh »
The driver stores data from each channel - this corresponds to max_samples. Once you have finished collecting data, this can be retrieved from the driver using the ps2000_get_streaming_values_no_aggregation() for raw data values or call ps2000_get_streaming_values() to obtain aggregated data.First, I cannot understand why ps2000_run_streaming_ns() requires two sizes as parameters - max_samples and overview_buffer_size?
You can introduce a small sleep depending on the sampling rate at which you are collecting data. You need to ensure that you are collecting data at suitable intervals to ensure that data is not lost. Note that the PicoScope 2000 Series oscilloscopes are low memory devices so it would not take long to fill up the buffer memory which is used as a cache in streaming mode.The second question: Do I have to call ps2000_get_streaming_last_values() repeatedly or I can sleep between calls? (The sample code doesn't sleep, just calls it in the loop).
The function will return 0 if one of the input values is out of range. In the case of no samples being available, this would most likely be if the function is called when streaming data collection has stopped.And third: According to the doc the ps2000_get_streaming_last_values() can return 0 if there is no samples available. It doesn't make sense, because it's callback registration function, how do I know that it's time to ask for call back then?
Return to “General Software Discussions”