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.
Code: Select all
//initilize
dsMode = PS6000_RATIO_MODE_NONE;
samples = PreSamples+PostSamples;
//Determine if we are doing any downsampling
if (downRatio > 1){
dsMode = PS6000_RATIO_MODE_AVERAGE;
PreSamples = PreSamples*downRatio; //adjust samples to match down sampling ratio
PostSamples = PostSamples*downRatio;
}
//start Acquistion
err = ps6000RunBlock(ID,PreSamples,PostSamples,timebase,1,NULL,0,NULL,NULL);
if (err > 0)
goto done;
//check for completion
while (ready == 0)
{
Sleep(1); //this is a windows functions that lets other threads execute before starting again
ps6000IsReady(ID,&ready);
}
//set data buffers
err = ps6000SetDataBuffer(ID,channel,Adata,samples,dsMode);
if (err > 0)
goto done;
//Get Data
err = ps6000GetValues(ID,0,&samples,downRatio,dsMode,0,&clip);
if (err > 0)
goto done;
//This makes sure the acquisition stops. The instructions say to always call it.
err = ps6000Stop(ID);
Post by Hitesh »