PicoScope2000 Example error

Post your LabVIEW discussions here
Post Reply
Posts: 0
Joined: Fri Dec 15, 2023 3:01 am

PicoScope2000 Example error

Post by natsu »


I am currently using the PicoScope 2208B, and I encountered an error message when running the example "PicoScopeExampleBlock.vi" available on GitHub (https://github.com/picotech/picosdk-ni-labview-examples). The error message is as follows:

"Error API function call. Close any open Units? PICO_STATUS Unknown Error. Error code 2147478647 Decimal 7FFFEC77 Hex."

Could you please provide guidance on how to resolve this issue?

Thank you,

Posts: 420
Joined: Tue Oct 21, 2014 3:07 pm

Re: PicoScope2000 Example error

Post by AndrewA »

The error is from the ps2000OpenUnit.vi, it is triggered when ps2000_open_unit() fails to open a unit.
This is actually a forced error as there is no error handler for the ps2000 API as being older API it should have its own.

Anyway if a ps2000 unit has been left open by a previous run or another LabVIEW example, you need to click on the "Close and Exit",
so it will call ps2000_close_unit() and have the dll release PicoScope.
The next time you run the example it should connect and run the example.
Regards Andrew
Technical Specialist

Post Reply