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>> structure with following field : <<fields>> : .yokogawa_file : <required> <<file>> YOKOGAWA-MEG file : : .con | .ave | .raw : .meg_file : <required> Output MEG file. : : This is used in connecting to proj_root. : : [proj_root '/' <meg_parm.meg_file>] : : .pos_file : <optional> <<file>> POS-MAT file This is made by positioning program. : : the members of which are as follows : : mri_key - hash key [x1 string] : : coord_type- coordinate type [x1 string] : : pos - coordinate [Nch x3 double] : : name - channel name [Nch x1 string] : : trans_mri - transform matrix [4x4 double] : : header - header information <<struct>> : : .digit_file_name : <optional> : : .meg_market_id : <optional> : .ex_ch_gain : <optional> gain of extra channel[] [note] @see vb_set_yokogawa_meg_parm_test.m [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)
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>> structure with following field 0010 % : <<fields>> 0011 % : .yokogawa_file : <required> <<file>> YOKOGAWA-MEG file 0012 % : : .con | .ave | .raw 0013 % : .meg_file : <required> Output MEG file. 0014 % : : This is used in connecting to proj_root. 0015 % : : [proj_root '/' <meg_parm.meg_file>] : 0016 % : .pos_file : <optional> <<file>> POS-MAT file 0017 % This is made by positioning program. 0018 % : : the members of which are as follows 0019 % : : mri_key - hash key [x1 string] 0020 % : : coord_type- coordinate type [x1 string] 0021 % : : pos - coordinate [Nch x3 double] 0022 % : : name - channel name [Nch x1 string] 0023 % : : trans_mri - transform matrix [4x4 double] 0024 % : : header - header information <<struct>> 0025 % : : .digit_file_name : <optional> 0026 % : : .meg_market_id : <optional> 0027 % : .ex_ch_gain : <optional> gain of extra channel[] 0028 % [note] 0029 % @see vb_set_yokogawa_meg_parm_test.m 0030 % 0031 % [history] 0032 % 2008-01-23 (Sako) initial version 0033 % 2008-01-31 (Sako) deleted some fields to standardize 0034 % 2008-03-28 (Sako) supported pos-mat file 0035 % 2011-02-17 (Sako) got rid of old comments and unnecessary settings 0036 % 0037 % Copyright (C) 2011, ATR All Rights Reserved. 0038 % License : New BSD License(see VBMEG_LICENSE.txt) 0039 0040 if ~exist('device_code', 'var') || isempty(device_code) 0041 device_code = 1; 0042 end 0043 0044 func_ = mfilename; 0045 0046 % --- MEG --- % 0047 if device_code == 1 0048 0049 0050 % --- REQUIRED --------------------------------------------------- % 0051 0052 meg_parm = vb_meg_parm_set_measurement([], 'MEG', 'YOKOGAWA'); 0053 0054 % meg_parm.yokogawa_file = 'NH.con'; 0055 % meg_parm.yokogawa_file = 'NH.ave'; 0056 % meg_parm.yokogawa_file = 'NH.raw'; 0057 % if following saveman is valid and yokogawa file type is ... 0058 % *.con [Continuous Raw] --> channel binary file 0059 % *.ave [Evoked Ave] ------> channel binary file 0060 % *.raw [Evoked Raw] ------> trial binary file 0061 0062 meg_parm.yokogawa_file = ''; 0063 % meg_parm.yokogawa_file = 'NH.con'; 0064 % meg_parm.yokogawa_file = 'NH.ave'; 0065 % meg_parm.yokogawa_file = 'NH.raw'; 0066 % if following saveman is valid and yokogawa file type is ... 0067 % *.con [Continuous Raw] --> channel binary file 0068 % *.ave [Evoked Ave] ------> channel binary file 0069 % *.raw [Evoked Raw] ------> trial binary file 0070 0071 % --- actually MEG-MAT file will be made in "<proj_root>/meg_parm.meg_file" 0072 meg_parm.meg_file = ''; 0073 0074 meg_parm.pos_file = ''; 0075 0076 0077 % internal parameter 0078 meg_parm.memory_max = []; 0079 0080 0081 % --- OPTIONAL --------------------------------------------------- % 0082 meg_parm.ex_ch_gain = []; 0083 0084 % --- the way to set ex_ch_gain is like as follows 0085 % meg_parm.ex_ch_gain.name = '224'; 0086 % meg_parm.ex_ch_gain.value =100; 0087 % meg_parm.ex_ch_gain(2).name = '225'; 0088 % meg_parm.ex_ch_gain(2).value = 100; 0089 % meg_parm.ex_ch_gain(3).name = '226'; 0090 % meg_parm.ex_ch_gain(3).value = 110; 0091 0092 else 0093 error('(%s)undefined device_code : %d', func_, device_code); 0094 end 0095 0096 %%% END OF FILE %%%