How do I resolve picoscope DLL error?

21 views (last 30 days)
I have a picoscope 2206B and I want to stream data from MATLAB. I have installed the "PicoScope 2000 Series A API MATLAB Generic Instrument Driver" from the add-on menu. When I run the examples however I get the error below. The device is definitely connected as I can interface with it through the "Pico 7 T&M" desktop app. Any ideas how to fix this?
Warning: Disconnect: No devices found.
Error using icdevice
An error occurred while executing the driver create code.
There was an error loading the library "ps2000aWrap.dll"
The specified module could not be found.

Accepted Answer

Pico Technology
Pico Technology on 26 Jun 2023
Hi
You can get the required dll from here https://github.com/picotech/picosdk-c-wrappers-binaries as described in the README.
If you download the files that match your OS and put them in the same folder as either the Addon or the PicoSDK then they should be found by MATLAB, though it may require their location added to the MATLAB path.
  1 Comment
John
John on 26 Jun 2023
OK, I downloaded the dll from GITHUB and it now works. Thanks.

Sign in to comment.

More Answers (1)

Image Analyst
Image Analyst on 25 Jun 2023
Edited: Image Analyst on 25 Jun 2023
Try to load it from a script and see if that works
folderThatItIsIn = "c:\whatever";
fileName = fullfile(folderThatItIsIn, "ps2000aWrap.dll")
if isfile(fileName)
% Found the file where we expected to find it.
loadlibrary(fileName)
else
% You got the path wrong. This folder is wrong. Try another folder.
message = sprintf('ERROR: FILE NOT FOUND:\n%s', fileName);
uiwait(errordlg(message));
return;
end
Can you see the scope of you run imageacquisitionexplorer?
  2 Comments
John
John on 25 Jun 2023
imageacquisitionexplorer shows "no hardware detected". Given that this is not an image device maybe that makes sense? I just did a search on my hard drive and I dont see any files named 'ps2000aWrap.dll'... I do see a 'ps2000aWrap_thunk_pcwin64.dll. Not sure if this means I am missing files?
Image Analyst
Image Analyst on 25 Jun 2023
@John, I think you still need to have the DLL somewhere. In addition you may need an .h file. Look over my attached file where I read pins on a Measurement Computing digital I/O device. Note how I call loadlibrary.

Sign in to comment.

Products


Release

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!