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 23
Copyright © 2010-2011 Pico Technology Ltd. All rights reserved. usbdrdaqpg.en
3.5.14
UsbDrDaqOpenUnitProgress
PICO_STATUS UsbDrDaqOpenUnitProgress(
short * handle,
short * progress,
short * complete
)
This function checks on the progress of UsbDrDaqOpenUnitAsync .
Arguments:
handle: a pointer to where the function should store the handle of
the opened data logger, if the operation was successful. Use this as
the handle parameter when calling any other USB DrDAQ API
function.
0: if no unit is found or the unit fails to open
<>0: handle of unit (valid only if function returns PICO_OK)
progress: a location where the function writes an estimate of the
progress towards opening the data logger. The value is between 0 to
100.
complete: a location where the function will write a non-zero value
if the operation has completed
Returns:
PICO_OK
PICO_NULL_PARAMETER
PICO_OPERATION_FAILED
22
37
37
37