How do I resolve picoscope DLL error?
21 views (last 30 days)
Show older comments
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.
0 Comments
Accepted Answer
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.
More Answers (1)
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
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.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!