User Manual

Programming with the PicoScope 4000 Series56
Copyright © 2008-2011 Pico Technology Ltd. All rights reserved.ps4000pg.en
Applicability
Streaming mode only
Arguments
handle, the handle of the required device.
sampleInterval, a pointer to the requested time interval
between data points on entry and the actual time interval assigned
on exit.
sampleIntervalTimeUnits, the unit of time that the
sampleInterval is set to. Use one of these values: -
PS4000_FS
PS4000_PS
PS4000_NS
PS4000_US
PS4000_MS
PS4000_S
maxPreTriggerSamples, the maximum number of raw samples
before a trigger condition for each enabled channel. If no trigger
condition is set this argument is ignored.
maxPostTriggerSamples, the maximum number of raw samples
after a trigger condition for each enabled channel. If no trigger
condition is set this argument states the maximum number of
samples to be stored.
autoStop, a flag to specify if the streaming should stop when all
of maxSamples have been taken.
downSampleRatio, the number of raw values to each aggregated
value.
overviewBufferSize, the size of the overview buffers. These are
temporary buffers used for storing the data before returning it to the
application. The size is the same as the bufferLth value passed
to ps4000SetDataBuffer.
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_USER_CALLBACK
PICO_NULL_PARAMETER
PICO_INVALID_PARAMETER
PICO_STREAMING_FAILED
PICO_NOT_RESPONDING
PICO_TRIGGER_ERROR
PICO_INVALID_SAMPLE_INTERVAL
PICO_INVALID_BUFFER