set values to the meg_parm for vb_job_meg [usage] [meg_parm] = vb_set_yokogawa_meg_parm_test(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-18 (Sako) changed value of parameter which has default value Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function [meg_parm] = vb_set_yokogawa_meg_parm_test(device_code) 0002 % set values to the meg_parm for vb_job_meg 0003 % [usage] 0004 % [meg_parm] = vb_set_yokogawa_meg_parm_test(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-18 (Sako) changed value of parameter which has default value 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 = 'NH.con'; 0044 % meg_parm.yokogawa_file = 'NH.ave'; 0045 % meg_parm.yokogawa_file = 'NH.raw'; 0046 % if following saveman is valid and yokogawa file type is ... 0047 % *.con [Continuous Raw] --> channel binary file 0048 % *.ave [Evoked Ave] ------> channel binary file 0049 % *.raw [Evoked Raw] ------> trial binary file 0050 0051 % --- actually MEG-MAT file will be made in "<proj_root>/meg_parm.meg_file" 0052 meg_parm.meg_file = 'initial.meg.mat'; 0053 0054 data_dir = '.\databox'; 0055 pos_file_name = [ data_dir filesep 'tmp.pos.mat']; 0056 meg_parm.pos_file = pos_file_name; 0057 0058 0059 % internal parameter 0060 % --- default is 10000000 (10M) 0061 meg_parm.memory_max = []; 0062 0063 0064 % --- OPTIONAL --------------------------------------------------- % 0065 meg_parm.ex_ch_gain = []; 0066 0067 % --- the way to set ex_ch_gain is like as follows 0068 % meg_parm.ex_ch_gain.name = '224'; 0069 % meg_parm.ex_ch_gain.value =100; 0070 % meg_parm.ex_ch_gain(2).name = '225'; 0071 % meg_parm.ex_ch_gain(2).value = 100; 0072 % meg_parm.ex_ch_gain(3).name = '226'; 0073 % meg_parm.ex_ch_gain(3).value = 110; 0074 0075 else 0076 error('(%s)undefined device_code : %d', func_, device_code); 0077 end 0078 0079 %%% END OF FILE %%%