User manual
USB DrDAQ Programmer's Guide 17
Copyright © 2010-2011 Pico Technology Ltd. All rights reserved. usbdrdaqpg.en
3.5.8
UsbDrDaqSetInterval
PICO_STATUS UsbDrDaqSetInterval(
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 UsbDrDaqOpenUnit or
UsbDrDaqOpenUnitProgress
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: descriptions identifying the the channels from which you
wish to capture data. USB_DRDAQ_CHANNEL_EXT1,
USB_DRDAQ_CHANNEL_EXT2, USB_DRDAQ_CHANNEL_EXT3,
USB_DRDAQ_CHANNEL_SCOPE, USB_DRDAQ_CHANNEL_PH,
USB_DRDAQ_CHANNEL_RES, USB_DRDAQ_CHANNEL_LIGHT,
USB_DRDAQ_CHANNEL_TEMP, USB_DRDAQ_CHANNEL_MIC_WAVE,
USB_DRDAQ_CHANNEL_MIC_LEVEL.
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
8
11
23
37
37
37
37
37
37
37
37
37