Home > vbmeg > external > mne > fiff_finish_writing_raw.m

fiff_finish_writing_raw

PURPOSE ^

SYNOPSIS ^

function fiff_finish_writing_raw(fid)

DESCRIPTION ^

 function fiff_finish_writing_raw(fid)

 fid        of an open raw data file

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function fiff_finish_writing_raw(fid)
0002 %
0003 % function fiff_finish_writing_raw(fid)
0004 %
0005 % fid        of an open raw data file
0006 %
0007 %
0008 
0009 %
0010 %   Author : Matti Hamalainen, MGH Martinos Center
0011 %   License : BSD 3-clause
0012 %
0013 %
0014 % Revision 1.2  2008/05/08 13:35:09  msh
0015 % Ending FIFFB_MEAS was missing
0016 %
0017 % Revision 1.1  2007/11/07 16:05:05  msh
0018 % New routines for writing raw files
0019 %
0020 
0021 me = 'MNE:fiff_finish_writing_raw';
0022 if nargin ~= 1
0023     error(me, 'File id required as an argument');
0024 end
0025 
0026 global FIFF;
0027 if isempty(FIFF)
0028     FIFF = fiff_define_constants();
0029 end
0030 fiff_end_block(fid, FIFF.FIFFB_RAW_DATA);
0031 fiff_end_block(fid, FIFF.FIFFB_MEAS);
0032 fiff_end_file(fid);
0033 
0034 return

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005