Matlab

Post your MATLAB discussions here
Richard

Matlab

Post by Richard »

Hi, I'm told there are some basic Matlab drivers/routines available somewhere for the ADC212. Could anyone point me in the right direction. Apparently Pico Technology made up some rough code but doesn't distribute it with the other software.

Thanks in advance for any help.

Richard.

User avatar
markspencer
Site Admin
Site Admin
Posts: 598
Joined: Wed May 07, 2003 9:45 am

Post by markspencer »

Hi,

We do have some very simple examples for MatLab, which can be used with the ADC2xx range of products

If you provide your email address to me I will forward the files onto you:

email: tech@picotech.com

Best regards,
Regards,

Mark Spencer

Saulius

Post by Saulius »

I would like to get these files as well please. I have pico 212-100. I need to talk to device through MatLab. Could you please send it to saulius0317(et)yahoo(dot)com

Thank you in advance.

P.S. sorry that I passed this "Contact information can be posted only by registered users". I really need these files...

Saulius

pico
Newbie
Posts: 0
Joined: Tue Jul 13, 2010 9:40 am

Re: Matlab

Post by pico »

Hello,

Do you have examples of programs in Matlab for Pico2205 as well?
(for block mode or fast streaming mode)

I really thank you in advance!

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: Matlab

Post by ziko »

Hi,

Unfortunately we do not have any examples for Matlab at the moment for the 2205. If anybody has some example please feel free to share this.

Kind regards
Ziko

Technical Specialist

fernandoluiz
Newbie
Posts: 0
Joined: Wed Dec 15, 2010 6:13 pm

Re: Matlab

Post by fernandoluiz »

do you have matlab examples for pico3206?

Chris
Site Admin
Site Admin
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

Re: Matlab

Post by Chris »

I'm afraid we don't have any matlab examples for this scope.

User avatar
M.Yasser
Newbie
Posts: 0
Joined: Sat Oct 15, 2011 7:01 pm

Re: Matlab

Post by M.Yasser »

Hello,
Do you have examples of programs in Matlab for USB DrDAQ or original DrDAQ ?
Regards.

Hitesh

Re: Matlab

Post by Hitesh »

Hi,

We don't currently have any MATLAB examples that we have created for our products including the DrDAQ (both USB and parallel port versions).

However, there is an example created by another Customer that shows how to use MATLAB with a PicoScope 2000 series PC Oscilloscope which you can use as a starting point. Please visit http://www.picoapps.com/coders-corner/ and look under the Mini-apps section.

Create a directory on your PC containing the appropriate dll and the corresponding DrDAQApi.h file, and create your MATLAB script in this directory. An example to load the library, and open and close a connection to the USB DrDAQ would be:

Code: Select all

function usbDrDAQ

global data;

loadlibrary('USBDrDAQ.dll',' usbDrDaqApi.h');

if ~libisloaded('USBDrDAQ')
    error('library USBDrDAQ.dll or  usbDrDaqApi.h not found') %check if the library is loaded
end

data.unithandle = 0;

% Open a connection
[status, data.unithandle] = calllib('USBDrDAQ', 'UsbDrDaqOpenUnit', data.unithandle)

% Call some functions on the DrDAQ

% Close the connection

status = calllib('USBDrDAQ', 'UsbDrDaqCloseUnit', data.unithandle)

Once you have loaded the library in, you can use the 'libfunctionsview' function to view the functions from the dll that have been loaded into the MATLAB environment providing you have not unloaded the library.

I hope this helps.

User avatar
M.Yasser
Newbie
Posts: 0
Joined: Sat Oct 15, 2011 7:01 pm

Re: Matlab

Post by M.Yasser »

Hello Hitesh,
I’ll do some experiments and examine your code...
Thanks a lot. :)

rakeshvec
Newbie
Posts: 0
Joined: Mon Nov 25, 2013 11:56 am

Re:

Post by rakeshvec »

markspencer wrote:Hi,

We do have some very simple examples for MatLab, which can be used with the ADC2xx range of products

If you provide your email address to me I will forward the files onto you:

email: tech@picotech.com

Best regards,

Hi,
I have Pico scope 4424.
can you please share some MATLAB samples so that I can easily start development.

-Rakesh

Hitesh

Re: Matlab

Post by Hitesh »

Hi Rakesh,

Please see the following topic/post:

http://www.picotech.com/support/topic5549.html#p21035

There is an example there that another Forum user has posted there.

Regards,

Gustav
Newbie
Posts: 1
Joined: Sat Jan 23, 2010 1:33 pm

Re: Matlab

Post by Gustav »

Hi

I have one (old) PS5204. I am very happy with the device, except when I try to control the device with Matlab. I have got things working, only to see it stop working when I changed version of Matlab and/or version of windows.


It seems to me, like you have better support for some picoscope series, than others. Which scopes would you recommend for Matlab control?

Hitesh

Re: Matlab

Post by Hitesh »

Hi Gustav,

What are the issues that you are getting when the version of MATLAB or Windows changes?

I've been loading our dlls with MATLAB 2011b and later.

We provide Instrument Drivers for use with the Instrument Control Toolbox for the the following ranges:

PicoScope 2000 : 2104/5 and 2204A/2205A
PicoScope 3000 : 3X04A/B, 3X05A/B, 3X06A/B and 3207A/B
PicoScope 5000 : 5X42A/B, 5X43A/B and 5X44A/B

MATLAB 2012b or later is recommended.

Regards,

Gustav
Newbie
Posts: 1
Joined: Sat Jan 23, 2010 1:33 pm

Re: Matlab

Post by Gustav »

On windows 8.1, and Matlab R2012b, I get this message:

"C:\Users\..\matlab\mqair\PS5000.dll"
C:\Users\..\matlab\mqair\PS5000.dll is not a valid Win32
application.

The script used to work on windows 7, Matlab 2011.

Post Reply