Home > vbmeg > functions > device > eeg > vb_eeginfo_set_rectime.m

vb_eeginfo_set_rectime

PURPOSE ^

set record time to EEGinfo

SYNOPSIS ^

function [eeginfo] = vb_eeginfo_set_rectime(eeginfo, rec_time)

DESCRIPTION ^

 set record time to EEGinfo
 [usage]
   [eeginfo] = vb_eeginfo_set_rectime(eeginfo, rec_time)
 [input]
    eeginfo : <required> <<struct>> EEGinfo
   rec_time : <optional> <<string>> record time [] [sec]
 [output]
    eeginfo : updated EEGinfo
 [note]
   device dependent data
 [history]
   2011-05-27 (Sako) initial version

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SUBFUNCTIONS ^

SOURCE CODE ^

0001 function [eeginfo] = vb_eeginfo_set_rectime(eeginfo, rec_time)
0002 % set record time to EEGinfo
0003 % [usage]
0004 %   [eeginfo] = vb_eeginfo_set_rectime(eeginfo, rec_time)
0005 % [input]
0006 %    eeginfo : <required> <<struct>> EEGinfo
0007 %   rec_time : <optional> <<string>> record time [] [sec]
0008 % [output]
0009 %    eeginfo : updated EEGinfo
0010 % [note]
0011 %   device dependent data
0012 % [history]
0013 %   2011-05-27 (Sako) initial version
0014 %
0015 % Copyright (C) 2011, ATR All Rights Reserved.
0016 % License : New BSD License(see VBMEG_LICENSE.txt)
0017 
0018 % --- CHECK ARGUMENTS --- %
0019 if ~exist('eeginfo', 'var'), eeginfo = []; end
0020 if ~exist('rec_time', 'var'), rec_time = ''; end
0021 [eeginfo, rec_time] = inner_check_arguments(eeginfo, rec_time);
0022 
0023 % --- MAIN PROCEDURE --------------------------------------------------------- %
0024 %
0025 eeginfo.device_info.RecordTime = rec_time;
0026 return;
0027 %
0028 % --- END OF MAIN PROCEDURE -------------------------------------------------- %
0029 
0030 % --- INNER FUNCTIONS -------------------------------------------------------- %
0031 %
0032 % --- inner_check_arguments()
0033 %
0034 function [eeginfo, rec_time] = inner_check_arguments(eeginfo, rec_time)
0035 func_ = mfilename;
0036 if isempty(eeginfo)
0037   error('(%s) eeginfo is a required parameter', func_);
0038 end
0039 return;
0040 %
0041 % --- end of inner_check_arguments()
0042 %
0043 % --- END OF INNER FUNCTIONS ------------------------------------------------- %
0044 
0045 %--- END OF FILE ---%

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