Installation guide

PicoScope 4000 Series (A API) Programmer's Guide 21
Copyright © 2008-2014 Pico Technology Ltd. All rights reserved. ps4000apg.en r1
4.2
ps4000aChangePowerSource
PICO_STATUS ps4000aChangePowerSource
(
int16_t handle,
PICO_STATUS powerstate
)
This function controls the two-stage power-up sequence when the device is plugged
into a non-USB 3.0 port.
If you receive the PICO_USB3_0_DEVICE_NON_USB3_0_PORT status code from one of
the OpenUnit functions (ps4000aOpenUnit, ps4000aOpenUnitAsync or
ps4000aOpenUnitProgress), you must then call ps4000aChangePowerSource to
switch the device into non-USB 3.0-power mode.
Note. The PicoScope 4824 has two power supply options:
1.To power it from a USB 3.0 port, use the USB 3.0 cable supplied.
2.To power it from a non-USB 3.0 port, use the double-headed USB 2.0 cable supplied
and plug it into two USB 1.1 or USB 2.0 ports on the host machine.
Applicability
All modes
Arguments
handle, the handle of the device.
powerstate, the required state of the unit. Must be set to
PICO_USB3_0_DEVICE_NON_USB3_0_PORT.
Returns
PICO_OK
PICO_POWER_SUPPLY_REQUEST_INVALID
PICO_INVALID_PARAMETER
PICO_NOT_RESPONDING
PICO_INVALID_HANDLE