Test and Measurement Forum

added everything to path but still Library was not found

Post your MATLAB discussions here

added everything to path but still Library was not found

Postby stu_J » Wed Mar 30, 2016 3:41 pm

Hi all,

I´m now using picoscope 3204A, and I downloaded the newest picoscope SDK that contains all versions of picoscope. I use 64bit window and 64bit matlab R2014a.

After installing the driver, I copied
'ps3000a_thunk_pcwin64.dll'
'ps3000aMFile.m'
'ps3000aWrap_thunk_pcwin64.dll'
'ps3000aWrapMFile.m'
files from the PicoSDK-MATLAB-ps3000a-win64 folder to my matlab path. Since I couldn´t find the 'Picolpp.dll' file in this SDK, so I copied one from picoscope 6 software into the same matlab path. But then I run 'PS3000a_IC_Generic_Driver_1buffer_RunBlock.m', this didn´t work. So I changed the names into
'PS3000a.dll', 'PS3000aMFile.m', 'ps3000aWrap.dll', 'ps3000aWrapMFile.m',
still the same error 'Operation failed: An error occurred while executing the driver disconnect code.
Library was not found
If this error is not an instrument error, use MIDEDIT to inspect the driver.'

I also did
>> icdevice('PS3000a_IC_drv', ''), which gave the same error

I did actually run mex -setup command so that 'MEX configured to use 'Microsoft Visual C++ 2010 (C)' for C language compilation'

I´ve struggled the whole day and really don´t know what´s wrong, pls help me!

Thank you
-J
stu_J
Newbie
 
Posts: 0
Joined: Wed Mar 30, 2016 3:10 pm

Re: added everything to path but still Library was not found

Postby Hitesh » Thu Mar 31, 2016 8:41 am

Hi stu_J,

The ps3000a.dll, ps3000aWrap.dll and picoipp.dll files are located in the following folder:

C:\Program Files\Pico Technology\SDK\lib

You can add this to the PS3000aConfig.m file i.e.

Code: Select all
addpath(C:\Program Files\Pico Technology\SDK\lib);

The PicoIpp.dll file in the PicoScope 6 installation file is a 32-bit version and so will not work with a 64-bit application.

I would also recommend using the Instrument Driver package from the ps3000a_BETA folder from our submission on MATLAB Central File Exchange. This contains better examples and some functions to simplify data collection.

If you have changed the name of the ps3000a_thunk_pcwin64.dll and ps3000aWrap_thunk_pcwin64.dll files, please change them back as these are compatibility libraries which means that you do not need to configure a C compiler.

Please note that Pico Technology is not responsible for the content of external websites.

Hope this helps.
Hitesh

Technical Specialist
Pico Technology
Hitesh
Site Admin
Site Admin
 
Posts: 2058
Joined: Tue May 31, 2011 3:43 pm
Location: St. Neots, Cambridgeshire

Re: added everything to path but still Library was not found

Postby stu_J » Thu Mar 31, 2016 12:13 pm

Hi Hitech,

Thank you for the reply.

It works! But one first needs to change the name case of the library 'ps3000a.dll' to 'PS3000a.dll'.

Thank you:)
-J
stu_J
Newbie
 
Posts: 0
Joined: Wed Mar 30, 2016 3:10 pm


Return to MATLAB

Who is online

Users browsing this forum: No registered users and 0 guests