User manual

PicoScope 6000 Series Programmer's Guide 35
Copyright © 2009-2013 Pico Technology Ltd. All rights reserved. ps6000pg.en r9
3.9.14
ps6000GetUnitInfo
PICO_STATUS ps6000GetUnitInfo
(
short handle,
char * string,
short stringLength,
short * requiredSize
PICO_INFO info
)
This function retrieves information about the specified oscilloscope. If the device fails
to open, only the driver version and error code are available to explain why the last
open unit call failed.
Applicability
All modes
Arguments
handle, the handle of the device from which information is
required. If an invalid handle is passed, the error code from the last
unit that failed to open is returned.
string, on exit, the unit information string selected specified by
the info argument. If string is NULL, only requiredSize is
returned.
stringLength, the maximum number of chars that may be
written to string.
requiredSize, on exit, the required length of the string array.
info, a number specifying what information is required. The
possible values are listed in the table below.
Returns
PICO_OK
PICO_INVALID_HANDLE
PICO_NULL_PARAMETER
PICO_INVALID_INFO
PICO_INFO_UNAVAILABLE
PICO_DRIVER_FUNCTION