Try the following:
- Code: Select all
loadlibrary('PS6000.dll' , 'ps6000Api.h');
handle = 0;
serial = ;
[status.open, handle] = calllib('PS6000' , 'ps6000OpenUnit', handle , serial);
Instrument Drivers are planned for the PicoScope 6000 series but in the meantime, you can refer to the MathWorks guidance on how to call shared library functions to write your own code:http://www.mathworks.co.uk/help/matlab/using-c-shared-library-functions-in-matlab-.html
Please also refer to the guidance in this forum on writing MATLAB scripts.
Also, call libfunctionsview('PS6000') after loading the dll to view the input and output data types for a function call.
Don't forget to call the unloadlibrary function when you have finished Note:
Pico Technology is not responsible for the content of 3rd party websites.