Cannot open device error code: 286

Post your .Net discussions here
Post Reply
KAndreas
Newbie
Posts: 0
Joined: Thu Dec 06, 2018 8:43 am

Cannot open device error code: 286

Post by KAndreas »

I just tried your C# example "PS5000AStreamingConsole" and get the error: "Cannot open device error code: 286". What does this error mean? Where can i browse the error codes?

Martyn
Site Admin
Site Admin
Posts: 4499
Joined: Fri Jun 10, 2011 8:15 am
Location: St. Neots

Re: Cannot open device error code: 286

Post by Martyn »

If you check the PicoStatus.h file installed by the SDK in C:\Program Files\Pico Technology\SDK\inc you will find the codes.

Code: Select all

286 or 0x11E
// A USB 3.0 device is connected to a non-USB 3.0 port.
#define PICO_USB3_0_DEVICE_NON_USB3_0_PORT          0x0000011EUL
It is not an error, just a warning that needs handling. If you check the block mode example you will see the code to handle this

Code: Select all

                    if (status == StatusCodes.PICO_POWER_SUPPLY_NOT_CONNECTED || status == StatusCodes.PICO_USB3_0_DEVICE_NON_USB3_0_PORT)
                    {
                        status = Imports.ChangePowerSource(_handle, status);
                    }
Martyn
Technical Support Manager

Post Reply