Filter löschen
Filter löschen

How do I resolve picoscope DLL error?

24 Ansichten (letzte 30 Tage)
John
John am 25 Jun. 2023
Kommentiert: John am 26 Jun. 2023
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.

Akzeptierte Antwort

Pico Technology
Pico Technology am 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 Kommentar
John
John am 26 Jun. 2023
OK, I downloaded the dll from GITHUB and it now works. Thanks.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Image Analyst
Image Analyst am 25 Jun. 2023
Bearbeitet: Image Analyst am 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 Kommentare
John
John am 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 am 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.

Melden Sie sich an, um zu kommentieren.

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by