How do I resolve picoscope DLL error?

26 ビュー (過去 30 日間)
John
John 2023 年 6 月 25 日
コメント済み: John 2023 年 6 月 26 日
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.

採用された回答

Pico Technology
Pico Technology 2023 年 6 月 26 日
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 件のコメント
John
John 2023 年 6 月 26 日
OK, I downloaded the dll from GITHUB and it now works. Thanks.

サインインしてコメントする。

その他の回答 (1 件)

Image Analyst
Image Analyst 2023 年 6 月 25 日
編集済み: Image Analyst 2023 年 6 月 25 日
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 件のコメント
John
John 2023 年 6 月 25 日
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 2023 年 6 月 25 日
@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.

サインインしてコメントする。

製品


リリース

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by