Here are some Matlab .m files and a Matlab mex function used to convert Open Ephys data files to the Plexon .plx file, which can be opened by Plexon Offline-Sorter.