Borrar filtros
Borrar filtros

How do I resolve picoscope DLL error?

31 visualizaciones (últimos 30 días)
John
John el 25 de Jun. de 2023
Comentada: John el 26 de Jun. de 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.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (1)

Image Analyst
Image Analyst el 25 de Jun. de 2023
Editada: Image Analyst el 25 de Jun. de 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 comentarios
John
John el 25 de Jun. de 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 el 25 de Jun. de 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.

Iniciar sesión para comentar.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Productos


Versión

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by