This document discusses the development of MATLAB software to control data acquisition from a Multichannel Systems microelectrode array for studying sudden cardiac death. The software was developed because the MCS software stores data in a format that is slow to import into MATLAB. The developed MATLAB software can: 1) provide real-time display of electrogram signals from the microelectrode array; 2) record and save the signals in MATLAB in a desired format; and 3) perform real-time analysis of the signals through a graphical user interface. It controls data acquisition from the MCS unit, formats and stores the data, and allows for real-time visualization and analysis of the signals to enable study of sudden cardiac death.