Information
PicoLog 1000 Series Programmer's Guide 19
Copyright © 2009 Pico Technology Ltd. All rights reserved. pl1000pg.en
3.3.13
pl1000SetInterval
PICO_STATUS pl1000SetInterval(
short handle,
unsigned long * us_for_block,
unsigned long ideal_no_of_samples,
short * channels,
short no_of_channels
)
This function sets the sampling rate of the unit.
The fastest possible sampling interval is 1 microsecond, when the number of samples
is 8129 divided by the number of channels active and the capture mode is
BM_SINGLE. Under all other conditions, the fastest possible sampling interval is 10
microseconds.
Arguments:
handle: handle returned from pl1000OpenUnit or
pl1000OpenUnitProgress
us_for_block: target total time in which to collect
ideal_no_of_samples, in microseconds
ideal_no_of_samples: the number of samples that you want to
collect. This number is used only for timing calculations.
channels: an array of numbers identifying the channels from which
you wish to capture data, from PL1000_CHANNEL_1 to
PL1000_CHANNEL_12 (for the PicoLog 1012) or
PL1000_CHANNEL_16 (for the PicoLog 1216).
no_of_channels: the number of channels in the channels array
Returns:
PICO_OK
PICO_INVALID_HANDLE
PICO_INVALID_CHANNEL
PICO_INVALID_TIMEBASE
PICO_NOT_RESPONDING
PICO_CONFIG_FAIL
PICO_INVALID_PARAMETER
PICO_NOT_RESPONDING
PICO_TRIGGER_ERROR
6
13
15
23
23
23
23
23
23
23
23
23