An interface between Matlab and the 1401
"Matced" is an interface that allows Matlab to directly control the CED 1401 data acquisition system. This allows one to have a powerful front-end computing environment to process and plot data sampled by the CED. At the same time one can program the CED-1401 using Matlab's M-files. Together with Matlab's graphical user interface (uicontrol) one can easily build a complete windows application using M-files.
Department of Neurobiology and Psychology,
Jules Stein Eye Institute & Brain Research Institute,
David Geffen School of Medicine,
University of California, Los Angeles,
Los Angeles, CA 90095-1563
Jim Colebatch has kindly converted the work above to a 32 bit version needed for modern versions of Matlab. Down-load matced32.zip which WinZip will expand to give you matced32.c, matced32.dll, matced32.m and mat1401X.m and mat1301Xp.m - the last two are example code which are simple example programs. In the latest revision, he says:
The DLL includes the option of a call to U14WorkingSet, and subroutines with errors now always return the error code.
64 bit mex file for Matlab to interface to use1432
Jim has also made available a 64 bit mex file for Matlab to interface to the use1432.dll. Down-load matced64c.zip and expand for the mex file and example m files. Jim explains:
I have chosen the name matced64c to indicate that this is a compatible version, so no 64bit-specific variables have been used.
matced64c.mexw64 should be put in a directory in the Matlab path, along with use1432.dll version as supplied.
The mex file can be tested using the m files included, namely mat1401X_64c.m, mat1401Xp_64c.m and mat1401TF_64c.m and they show how you should call the mex interface and how you should modify your existing m files.
Matlab GUI for 1401
Jim has also provided a Matlab GUI to use the 1401, matgui.zip. It works with version 6.5.1, 7.0 and 7.1 (at least) and allows simple data collection directly into Matlab. It uses his MATCED32.DLL, above.
The code illustrates a number of features of the Matlab GUI, in particular how variables are saved and can be passed between windows.
There is also a 64 bit version, a1401gui_64.zip.