Home > functions > template > vb_set_yokogawa_meg_parm.m

vb_set_yokogawa_meg_parm

PURPOSE ^

set values to the meg_parm for vb_job_meg

SYNOPSIS ^

function [meg_parm] = vb_set_yokogawa_meg_parm(device_code)

DESCRIPTION ^

 set values to the meg_parm for vb_job_meg
 [usage]
   [meg_parm] = vb_set_yokogawa_meg_parm(device_code)
 [input]
   device_code : <optional> device code for 1) MEG or 2) EEG
               :  default is [1]
 [output]
      meg_parm : <<struct>> meg_parm
 [note]

 [history]
   2008-01-23 (Sako) initial version
   2008-01-31 (Sako) deleted some fields to standardize
   2008-03-28 (Sako) supported pos-mat file
   2011-02-17 (Sako) got rid of old comments and unnecessary settings

 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_set_yokogawa_meg_parm(device_code)
0002 % set values to the meg_parm for vb_job_meg
0003 % [usage]
0004 %   [meg_parm] = vb_set_yokogawa_meg_parm(device_code)
0005 % [input]
0006 %   device_code : <optional> device code for 1) MEG or 2) EEG
0007 %               :  default is [1]
0008 % [output]
0009 %      meg_parm : <<struct>> meg_parm
0010 % [note]
0011 %
0012 % [history]
0013 %   2008-01-23 (Sako) initial version
0014 %   2008-01-31 (Sako) deleted some fields to standardize
0015 %   2008-03-28 (Sako) supported pos-mat file
0016 %   2011-02-17 (Sako) got rid of old comments and unnecessary settings
0017 %
0018 % Copyright (C) 2011, ATR All Rights Reserved.
0019 % License : New BSD License(see VBMEG_LICENSE.txt)
0020 
0021 if ~exist('device_code', 'var') || isempty(device_code)
0022   device_code = 1;
0023 end
0024 
0025 func_ = mfilename;
0026 
0027 % --- MEG --- %
0028 if device_code == 1
0029 
0030 
0031   % --- REQUIRED --------------------------------------------------- %
0032 
0033   meg_parm = vb_meg_parm_set_measurement([], 'MEG', 'YOKOGAWA');
0034 
0035 %   meg_parm.yokogawa_file   = 'NH.con';
0036 %   meg_parm.yokogawa_file   = 'NH.ave';
0037 %   meg_parm.yokogawa_file   = 'NH.raw';
0038   % if following saveman is valid and yokogawa file type is ...
0039   %  *.con [Continuous Raw] --> channel binary file
0040   %  *.ave [Evoked Ave] ------> channel binary file
0041   %  *.raw [Evoked Raw] ------> trial binary file
0042 
0043   meg_parm.yokogawa_file   = '';
0044 %   meg_parm.yokogawa_file   = 'NH.con';
0045 %   meg_parm.yokogawa_file   = 'NH.ave';
0046 %   meg_parm.yokogawa_file   = 'NH.raw';
0047   % if following saveman is valid and yokogawa file type is ...
0048   %  *.con [Continuous Raw] --> channel binary file
0049   %  *.ave [Evoked Ave] ------> channel binary file
0050   %  *.raw [Evoked Raw] ------> trial binary file
0051   
0052   % --- actually MEG-MAT file will be made in "<proj_root>/meg_parm.meg_file"
0053   meg_parm.meg_file        = '';
0054 
0055   meg_parm.pos_file = '';
0056 
0057   
0058   % internal parameter
0059   meg_parm.memory_max      = [];
0060 
0061 
0062   % --- OPTIONAL --------------------------------------------------- %
0063   meg_parm.ex_ch_gain      = [];
0064 
0065 % --- the way to set ex_ch_gain is like as follows
0066 %   meg_parm.ex_ch_gain.name = '224';
0067 %   meg_parm.ex_ch_gain.value =100;
0068 %   meg_parm.ex_ch_gain(2).name = '225';
0069 %   meg_parm.ex_ch_gain(2).value = 100;
0070 %   meg_parm.ex_ch_gain(3).name = '226';
0071 %   meg_parm.ex_ch_gain(3).value = 110;
0072 
0073   % --- saveman
0074   saveman.data_dir         = '';
0075   saveman.precision        = '';
0076   meg_parm.saveman         = saveman;
0077 
0078 
0079 else
0080   error('(%s)undefined device_code : %d', func_, device_code);
0081 end
0082 
0083 %%% END OF FILE %%%

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