Home > functions > template > vb_meg_parm_set_measurement.m

vb_meg_parm_set_measurement

PURPOSE ^

This function sets meg_parm to measurement information.

SYNOPSIS ^

function [meg_parm] = vb_meg_parm_set_measurement(meg_parm, Measurement, device)

DESCRIPTION ^

 This function sets meg_parm to measurement information.
 [USAGE]
    [meg_parm] = vb_meg_parm_set_measurement(<meg_parm>, <Measurement>, <device>);
 [IN]
       meg_parm : this meg_parm is added measurement fields.
    Measurement : Hardware type
                  = 'MEG' : MEG
                  = 'EEG' : EEG
         device : Device type
                  = 'YOKOGAWA' : yokogawa
                  = 'SBI'      : shimadzu
                  = 'BIOSEMI'  : biosemi
 [OUT]
    meg_parm :  meg_parm is added measurement fields.
 [NOTE]
    Measurement and device string are used in job_meg.
    When you decide the specification of the string, think with job_meg.

 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:

SOURCE CODE ^

0001 function [meg_parm] = vb_meg_parm_set_measurement(meg_parm, Measurement, device)
0002 % This function sets meg_parm to measurement information.
0003 % [USAGE]
0004 %    [meg_parm] = vb_meg_parm_set_measurement(<meg_parm>, <Measurement>, <device>);
0005 % [IN]
0006 %       meg_parm : this meg_parm is added measurement fields.
0007 %    Measurement : Hardware type
0008 %                  = 'MEG' : MEG
0009 %                  = 'EEG' : EEG
0010 %         device : Device type
0011 %                  = 'YOKOGAWA' : yokogawa
0012 %                  = 'SBI'      : shimadzu
0013 %                  = 'BIOSEMI'  : biosemi
0014 % [OUT]
0015 %    meg_parm :  meg_parm is added measurement fields.
0016 % [NOTE]
0017 %    Measurement and device string are used in job_meg.
0018 %    When you decide the specification of the string, think with job_meg.
0019 %
0020 % Copyright (C) 2011, ATR All Rights Reserved.
0021 % License : New BSD License(see VBMEG_LICENSE.txt)
0022 
0023 %
0024 % --- Previous check
0025 %
0026 if ~exist('meg_parm', 'var'), error('meg_parm is a required parameter.'); end
0027 if ~exist('Measurement', 'var')
0028     error('Measurement is a required parameter.');
0029 end
0030 if ~exist('device', 'var')
0031     error('device is a required parameter.');
0032 end
0033 
0034 %
0035 % --- Main Procedure
0036 %
0037 if isempty(meg_parm)
0038     meg_parm = struct;
0039 end
0040 meg_parm.Measurement = Measurement;
0041 meg_parm.device      = device;
0042 
0043 %
0044 % --- After check
0045 %
0046 if nargout ~= 1
0047     error('function caller should receive meg_parm.');
0048 end

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005