Test and Measurement Forum

PicoScope 5204 Matlab Driver

Post your MATLAB discussions here

PicoScope 5204 Matlab Driver

Postby Yavor » Fri Mar 08, 2013 9:50 am

Can you advise me on how to parse ps5000Api.h so that my ps5000MFile.m will have the following function included:

PICO_STATUS ps5000Ready (short handle, short * ready);

Any suggestions are welcomed.
Yavor
Newbie
 
Posts: 0
Joined: Thu Mar 07, 2013 6:09 pm

Re: PicoScope 5204 Matlab Driver

Postby Hitesh » Fri Mar 08, 2013 12:01 pm

Hi Yavor,

Please ensure that the PS5000.dll, ps5000Api.h and picoStatus.h files are in the same folder.

In the ps5000Api.h file, ensure that the line to include picoStatus.h does not have a '../' prior to the file name i.e.

Code: Select all
#include "picoStatus.h"


Then in the MATLAB command window type:

Code: Select all
loadlibrary 'PS5000.dll' 'ps5000Api.h' mfilename 'PS5000MFile'


The output file produced should contain a line beginning with

fcns.name{fcnNum}='ps5000IsReady';

I 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


Return to MATLAB

Who is online

Users browsing this forum: No registered users and 0 guests