Home > vbmeg > functions > device > meg > vb_meginfo_set_acqcond.m

vb_meginfo_set_acqcond

PURPOSE ^

MEGinfo setter for acquisition condition

SYNOPSIS ^

function [meg_info] = vb_meginfo_set_acqcond(meg_info, acq_cond)

DESCRIPTION ^

 MEGinfo setter for acquisition condition
 [usage]
   [meg_info] = vb_meginfo_set_acqcond(meg_info, acq_cond)
 [input]
   meg_info : <required> <<struct>> MEG information
   acq_cond : <optional> if this is not specified, set empty
 [output]
   meg_info : updated MEG information struct
            :  acq_cond data is stored as device_info.acq_info.condition
 [note]
   example of acq_cond)
                   type: 'Continuous_Raw'
            sample_rate: 4500
           frame_length: 1710000
      pretrigger_length: []
              num_epoch: 1
     setup_sample_count: []
           trigger_mode: []
        trigger_setting: []
 [history]
   2011-05-26 (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 [meg_info] = vb_meginfo_set_acqcond(meg_info, acq_cond)
0002 % MEGinfo setter for acquisition condition
0003 % [usage]
0004 %   [meg_info] = vb_meginfo_set_acqcond(meg_info, acq_cond)
0005 % [input]
0006 %   meg_info : <required> <<struct>> MEG information
0007 %   acq_cond : <optional> if this is not specified, set empty
0008 % [output]
0009 %   meg_info : updated MEG information struct
0010 %            :  acq_cond data is stored as device_info.acq_info.condition
0011 % [note]
0012 %   example of acq_cond)
0013 %                   type: 'Continuous_Raw'
0014 %            sample_rate: 4500
0015 %           frame_length: 1710000
0016 %      pretrigger_length: []
0017 %              num_epoch: 1
0018 %     setup_sample_count: []
0019 %           trigger_mode: []
0020 %        trigger_setting: []
0021 % [history]
0022 %   2011-05-26 (Sako) initial version
0023 %
0024 % Copyright (C) 2011, ATR All Rights Reserved.
0025 % License : New BSD License(see VBMEG_LICENSE.txt)
0026 
0027 % --- CHECK ARGUMENTS --- %
0028 if ~exist('meg_info', 'var'), meg_info = []; end
0029 if ~exist('acq_cond', 'var'), acq_cond = []; end
0030 [meg_info, acq_cond] = inner_check_arguments(meg_info, acq_cond);
0031 
0032 % --- MAIN PROCEDURE --------------------------------------------------------- %
0033 %
0034 meg_info.device_info.acq_info.condition = acq_cond;
0035 return;
0036 %
0037 % --- END OF MAIN PROCEDURE -------------------------------------------------- %
0038 
0039 % --- INNER FUNCTIONS -------------------------------------------------------- %
0040 %
0041 % --- inner_check_arguments()
0042 %
0043 function [meg_info, acq_cond] = inner_check_arguments(meg_info, acq_cond)
0044 func_ = mfilename;
0045 
0046 if isempty(meg_info)
0047   error('(%s)meg_info is a required parameter', func_);
0048 end
0049 return;
0050 %
0051 % --- end of inner_check_arguments()
0052 %
0053 % --- END OF INNER FUNCTIONS ------------------------------------------------- %
0054 
0055 % --- END OF FILE --- %

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