PicoScope 5204 Matlab Driver

Post your MATLAB discussions here
Post Reply
Yavor
Newbie
Posts: 0
Joined: Thu Mar 07, 2013 6:09 pm

PicoScope 5204 Matlab Driver

Post by Yavor »

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.

Hitesh

Re: PicoScope 5204 Matlab Driver

Post by Hitesh »

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.

Post Reply