User manual
Table Of Contents
- Introduction
- Getting started
- Writing your own software
- About the driver
- Installing the driver
- Connecting the logger
- Capture modes
- USB DrDAQ Routines
- Summary
- UsbDrDaqOpenUnit
- UsbDrDaqCloseUnit
- UsbDrDaqGetUnitInfo
- UsbDrDaqRun
- UsbDrDaqReady
- UsbDrDaqStop
- UsbDrDaqSetInterval
- UsbDrDaqSetTrigger
- UsbDrDaqGetValues
- UsbDrDaqGetTriggerTimeOffsetNs
- UsbDrDaqGetSingle
- UsbDrDaqOpenUnitAsync
- UsbDrDaqOpenUnitProgress
- UsbDrDaqGetScalings
- UsbDrDaqSetScalings
- UsbDrDaqSetSigGenBuiltIn
- UsbDrDaqSetSigGenArbitrary
- UsbDrDaqStopSigGen
- UsbDrDaqSetDO
- UsbDrDaqSetPWM
- UsbDrDaqGetInput
- UsbDrDaqStartPulseCount
- UsbDrDaqGetPulseCount
- UsbDrDaqEnableRGBLED
- UsbDrDaqSetRGBLED
- UsbDrDaqGetChannelInfo
- PICO_STATUS values
- Programming support
- Glossary

USB DrDAQ Programmer's Guide 11
Copyright © 2010-2011 Pico Technology Ltd. All rights reserved. usbdrdaqpg.en
3.5.2
UsbDrDaqOpenUnit
PICO_STATUS UsbDrDaqOpenUnit(
short * handle
)
This function opens and enumerates the unit.
Arguments:
handle: the function will write a value here that uniquely identifies
the data logger that was opened. Use this as the handle parameter
when calling any other UsbDrDaq API function.
Returns:
PICO_OK
PICO_OS_NOT_SUPPORTED
PICO_OPEN_OPERATION_IN_PROGRESS
PICO_EEPROM_CORRUPT
PICO_KERNEL_DRIVER_TOO_OLD
PICO_FW_FAIL
PICO_MAX_UNITS_OPENED
PICO_NOT_FOUND
PICO_NOT_RESPONDING
37
37
37
37
37
37
37
37
37