EasyManua.ls Logo

PICO PicoScope 3204A - Page 19

PICO PicoScope 3204A
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
Loading...
PicoScope 3000A Series Prog rammer's Guide 13
Copyright © 2011-2013 Pico Technology Limited. All rights reserved. ps3000abpg.en r9
2.7.2.3 Rapid block mode example 2: using 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,
1000000, // noOfPostTriggerSamples,
1, // timebase to be used,
1, // not used
&timeIndisposedMs,
1, // segment index
lpReady,
&pParameter
);
Comments: the set-up for running the device is exactly the same whether or not
aggregation will be used when you retrieve the samples.
for (int segment = 10; segment < 20; segment++)
{for (int c = PS3000A_CHANNEL_A; c <= PS3000A_CHANNEL_D; c++)
{
ps3000aSetDataBuffers
(
handle,
c,
&bufferMax[c],
&bufferMin[c]
MAX_SAMPLES
Segment,
PS3000A_RATIO_MODE_AGGREGATE
);
}
Comments: since only one waveform will be retrieved at a time, you only need to set
up one pair of buffers; one for the maximum samples and one for the minimum samples.
Again, the buffer sizes are 1000 samples.

Table of Contents

Other manuals for PICO PicoScope 3204A

Related product manuals