Test and Measurement Forum

Matlab

Post your MATLAB discussions here

Matlab

Postby Richard » Wed Jun 11, 2003 9:28 am

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.
Richard
 

Postby markspencer » Thu Jun 12, 2003 7:24 am

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
User avatar
markspencer
Site Admin
Site Admin
 
Posts: 598
Joined: Wed May 07, 2003 9:45 am

Postby Saulius » Thu Jan 18, 2007 2:30 pm

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
Saulius
 

Re: Matlab

Postby pico » Thu Jul 29, 2010 8:19 am

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!
pico
Newbie
 
Posts: 0
Joined: Tue Jul 13, 2010 9:40 am

Re: Matlab

Postby ziko » Mon Aug 02, 2010 10:30 am

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
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Re: Matlab

Postby fernandoluiz » Wed Jun 15, 2011 6:36 pm

do you have matlab examples for pico3206?
fernandoluiz
Newbie
 
Posts: 0
Joined: Wed Dec 15, 2010 6:13 pm

Re: Matlab

Postby Chris » Thu Jun 16, 2011 7:52 am

I'm afraid we don't have any matlab examples for this scope.
Chris
Site Admin
Site Admin
 
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

Re: Matlab

Postby M.Yasser » Sun Oct 16, 2011 2:29 pm

Hello,
Do you have examples of programs in Matlab for USB DrDAQ or original DrDAQ ?
Regards.
User avatar
M.Yasser
Newbie
 
Posts: 0
Joined: Sat Oct 15, 2011 7:01 pm

Re: Matlab

Postby Hitesh » Mon Oct 17, 2011 8:42 am

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.
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: Matlab

Postby M.Yasser » Fri Oct 21, 2011 3:27 pm

Hello Hitesh,
I’ll do some experiments and examine your code...
Thanks a lot. :)
User avatar
M.Yasser
Newbie
 
Posts: 0
Joined: Sat Oct 15, 2011 7:01 pm

Re:

Postby rakeshvec » Tue Dec 03, 2013 10:32 am

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
rakeshvec
Newbie
 
Posts: 0
Joined: Mon Nov 25, 2013 11:56 am

Re: Matlab

Postby Hitesh » Tue Dec 03, 2013 2:49 pm

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,
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: Matlab

Postby Gustav » Mon Dec 16, 2013 9:53 am

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?
Gustav
Guru
Guru
 
Posts: 63
Joined: Sat Jan 23, 2010 1:33 pm

Re: Matlab

Postby Hitesh » Mon Dec 16, 2013 12:10 pm

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,
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: Matlab

Postby Gustav » Mon Dec 16, 2013 7:16 pm

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.
Gustav
Guru
Guru
 
Posts: 63
Joined: Sat Jan 23, 2010 1:33 pm

Next

Return to MATLAB

Who is online

Users browsing this forum: No registered users and 1 guest