EasyManuals Logo

PICO PicoScope 3000 A Series Programmer's Guide

PICO PicoScope 3000 A Series
144 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #17 background imageLoading...
Page #17 background image
PicoScope 3000A Series Prog rammer's Guide 11
Copyright © 2011-2013 Pico Technology Limited. All rights reserved. ps3000abpg.en r9
2.7.2.2 Rapid block mode example 1: no aggregation
#define MAX_SAMPLES 1000
Set up the device up as usual.
Open the device
Channels
Trigger
Number of memory segments (this should be equal or more than the number of
captures required)
// set the number of waveforms to 100
ps3000aSetNoOfCaptures (handle, 100);
pParameter = false;
ps3000aRunBlock
(
handle,
0, // noOfPreTriggerSamples
10000, // noOfPostTriggerSamples
1, // timebase to be used
1, // not used
&timeIndisposedMs,
1, // segment index
lpReady,
&pParameter
);
Comment: these variables have been set as an example and can be any valid value.
pParameter will be set true by your callback function lpReady.
while (!pParameter) Sleep (0);
for (int i = 0; i < 10; i++)
{
for (int c = PS3000A_CHANNEL_A; c <= PS3000A_CHANNEL_B; c++)
{
ps3000aSetDataBuffer
(
handle,
c,
&buffer[c][i],
MAX_SAMPLES,
i
PS3000A_RATIO_MODE_NONE
);
}
}
Comments: buffer has been created as a two-dimensional array of pointers to shorts,
which will contain 1000 samples as defined by MAX_SAMPLES. There are only 10
buffers set, but it is possible to set up to the number of captures you have requested.

Table of Contents

Other manuals for PICO PicoScope 3000 A Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the PICO PicoScope 3000 A Series and is the answer not in the manual?

PICO PicoScope 3000 A Series Specifications

General IconGeneral
BrandPICO
ModelPicoScope 3000 A Series
CategoryTest Equipment
LanguageEnglish

Related product manuals