User manual

Writing your own software24
Copyright © 2010-2011 Pico Technology Ltd. All rights reserved.usbdrdaqpg.en
3.5.15
UsbDrDaqGetScalings
PICO_STATUS UsbDrDaqGetScalings(
short handle
USB_DRDAQ_INPUTS channel,
short * nScales,
short * currentScale,
char * names,
short namesSize
This function discovers the scalings, both built-in and custom, that are available for a
particular channel.
Arguments:
handle: handle returned from UsbDrDaqOpenUnit or
UsbDrDaqOpenUnitProgress
channel: the channel of interest
nScales: the function will write the number of available scales here
currentScale: The function will write an index to the currently
selected scale here
names: The function will write a string containing the scaling names
and indices
namesSize: the size of names
Returns:
PICO_OK
PICO_NOT_FOUND
PICO_INVALID_CHANNEL
11
23
37
37
37