I just recently acquired Picolog 1012 and would like to interface it with MATLAB 2012a.
I've followed the code provide by Hitesh in 'Writing MATLAB scripts using the PicoScope/Data Logger SDK' thread and here the code I wrote
- Code: Select all
error('Library pl1000.dll or pl1000Api.h not found') %Check if library file loaded
data.unithandle = 0;
[status_open, data.unithandle, data.serial] = calllib('PL1000', 'pl1000OpenUnit', handle);
I run it, but 2 error occured.
Error using loadlibrary (line 254)
A 'Selected' compiler was not found. You may need to run mex
Error in PicoLogMatlab (line 5)
I wonder how to run mex-setup and how to overcome the other error.