Test and Measurement Forum

Cannot connect driver to picoscope

Post your MATLAB discussions here

Cannot connect driver to picoscope

Postby cx1111 » Tue Feb 11, 2014 6:56 pm

I have the picoscope 3205A. I have the instrument control toolbox for matlab, and I downloaded the matlab generic instrument driver:
http://www.mathworks.co.uk/matlabcentra ... ent-driver

Also I downloaded the software: choosing picoscope 3205A and I actually tried both of the 'latest version' softwares from
http://www.picotech.com/software.html

for my 64 bit windows 7.


Problem is, when I try to use the icdevice('PS3000a_IC_drv.mdd') function on matlab, the error comes up:

Warning: The library name case did not match the file name.
The library will be named "ps3000a".
Warning: Escape sequence '\h' is not valid. See 'help sprintf' for valid escape sequences.
Error using instrument/delete (line 82)
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.

Error in icdevice (line 279)
delete(obj);


I added all the picoscope files to the directory, and also all the files from the driver pack, including the driver.

From the instructional PDF: Connecting to a device
Use the icdevice command to create an instance of an object representing the
PicoScope 3000A/B device. This loads the required library files.
It is possible to specify the batch/serial number of the device to connect to when
creating the device object:
ps3000a_object = icdevice('ps3000a', 'TEST/001');



Browsing through the threads on this forum, I found topic12799.html saying that the solution was a 32 bit dll file for the library folder.

How can I get the 64 bit one? I tried downloading both picoscope software packs, they are both 32 bit and I can't connect to my device.

Sorry about the long post, thank you.
cx1111
Newbie
 
Posts: 0
Joined: Thu Nov 28, 2013 12:57 pm

Re: Cannot connect driver to picoscope

Postby Hitesh » Wed Feb 12, 2014 11:41 am

Hi cx1111,

Please try renaming the dll to:

PS3000a.dll

and then try again.

If you require the 64-bit prototype and 'thunk' dll files please could you e-mail support@picotech.com and we will make this available for you to download. They will be available in the next release of the SDK.

Regards,
Hitesh

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

Re: Cannot connect driver to picoscope

Postby cx1111 » Wed Feb 12, 2014 3:44 pm

Hello, thanks for the reply.

I renamed the file as PS3000a.dll and tried again. The same error message comes up, except without the first warning:

Warning: The library name case did not match the file name.
The library will be named "ps3000a".


But the rest of the errors are still there:

Warning: Escape sequence '\P' is not valid. See 'help sprintf' for valid escape sequences.
Error using instrument/delete (line 82)
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.

Error in icdevice (line 279)
delete(obj);



What else could I do?

Also could I have some help with this from the pdf:

Connecting to a device
Use the icdevice command to create an instance of an object representing the
PicoScope 3000A/B device. This loads the required library files.
It is possible to specify the batch/serial number of the device to connect to when
creating the device object:
ps3000a_object = icdevice('ps3000a', 'TEST/001');
Alternatively, to proceed without specifying a batch/serial number:
ps3000a_object = icdevice('ps3000a', '');


Do I need the second variable to put into the icdevice function? How am I meant to get the serial number?

Thank You.
cx1111
Newbie
 
Posts: 0
Joined: Thu Nov 28, 2013 12:57 pm

Re: Cannot connect driver to picoscope

Postby Hitesh » Wed Feb 12, 2014 5:05 pm

Hi,

Are you using a 32-bit or 64-bit version of MATLAB?

Have you run mex -setup to configure the compiler?

Have you copied ps3000aWrap.dll to your MATLAB path or directory?

You don't need the batch/serial number to connect if you only have one scope, but it is located under the barcode on the label on underside of the device :)

Regards,
Hitesh

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

Re: Cannot connect driver to picoscope

Postby Dome1985 » Thu Apr 03, 2014 9:56 am

Hi,

did you solve the problem, cx1111? If you do so, could you tell me what did you do?


My data of my computer is:
I have Windows 7, 64 Bit and I use Matlab 2014a (32bit) to connect it to Picoscope 3206B.

I downloaded

- PicoScope R6.8.11 for Windows 7
- Software Development Kit R10.5.0.28

from here: http://www.picotech.com/software.html

My Questions:
1: In this zip folder of the SDK R10.5.0.28 are different folders with different files.
Which files do i need?

a) Folder /x64: not important for me because i use the 32bit version of matlab, even if i have 64Bit "computer", right?
b) Folder /Wrapper/Release/Win32 -> ps3000aWrap.dll is important for me, because i have the 32 bit version of matlab, right?
c) the whole folder of /MATLAB/.. is important
d) And all the other folders are not important, BUT the alle the other files like PicoIpp.dll, picoStatus.h., PS3000a.dll, are these files regarding the 32bit version? Do i need these files?

I am really sorry for this long mail, but i hope you can help me.

Thank you very much.
Dome1985
Newbie
 
Posts: 0
Joined: Thu Apr 03, 2014 9:19 am

Re: Cannot connect driver to picoscope

Postby Hitesh » Thu Apr 03, 2014 2:18 pm

Hi Dome1985,

You will need the following:

  • The contents of the MATLAB folder
  • The 32-bit PS3000a.dll, PicoIpp.dll and ps3000aWrap.dll

There's no need for the 64-bit dll files.

There is a User Guide in the MATLAB folder.

Hope this helps.
Hitesh

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

Re: Cannot connect driver to picoscope

Postby Dome1985 » Thu Jul 17, 2014 4:38 pm

hello,

i have the following problem.

My processing system worked with the sdk version 10_5_0_28 of PicoScope for Matlab.
Then i updated the PicoScope 6 Software to the latest one, after that nothing works anymore. I can´t connect my PicoScope.
The error is can´t find a specific library.

So my question is: (i downloaded the latest one: PS3000asdk_r10_5_0_32.zip)
1: i need the whole Matlab folder -> do i need this one too? -> MATLAB/ps3000a/x64
because i have the system like i described above.
2: and i need these one: PicoIpp.dll, ps3000a.dll which i can find here: PS3000asdk_r10_5_0_32/PicoIpp.dll and not here
-> PS3000asdk_r10_5_0_32/x64/.. right?
3. what about the ...Wrap.dll which one do i need? -> This one: ...PS3000asdk_r10_5_0_32.zip\Wrapper\Release\ps3000aWrap.dll or in this one: PS3000asdk_r10_5_0_32.zip\Wrapper\Release\x64\ps3000aWrap.dll ?
4. I read something in this .txt file: PS3000asdk_r10_5_0_32.zip\system\SystemDrivers.txt about copy a file in a specific folder, which one do i need -> x86 or amd64 ?

Unfortunately, i am in a big time pressure, so i hope i can solve this problem by copying the right files into the right directory.

Thanks for any help.

Dom
Dome1985
Newbie
 
Posts: 0
Joined: Thu Apr 03, 2014 9:19 am

Re: Cannot connect driver to picoscope

Postby Hitesh » Fri Jul 18, 2014 9:58 am

Hi Dom,

Only copy the ps3000a.dll and PicoIpp.dll files from the new SDK. You do not need files from the x64 directories if you are using a 32-bit version of MATLAB.

Is your MATLAB path setup to point to the PicoScope 6 installation directory?

Based on your Heldesk Support Ticket, you do not need to change the ps3000aWrap.dll file as the new SDK contains a modified wrapper dll.

Check to ensure that there aren't any instances of the PicoScope 6 running via the Windows Task Manager as this may have a lock on the device.

Hope this helps.
Hitesh

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


Return to MATLAB

Who is online

Users browsing this forum: No registered users and 0 guests