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