set values to the meg_parm for vb_job_eeg (BIOSEMI) [usage] [meg_parm] = vb_set_meg_parm_biosemi(device_code) [input] device_code : <optional> device code for 1) BIOSEMI : default is [1] [output] meg_parm : <<struct>> meg_parm : .Measurement : 'EEG' : .device : 'BIOSEMI' : .measurement_file : input file (normally *.bdf) : .pos_file : position file (*.pos.mat) : .output_file : output file (normally *.eeg.mat) : .bin_data_dir : binary data directory which is : : a relative path from output_file : .eeginfo_version : EEGinfo version (unused) : .verbose_swt : verbose message switch [false] [note] [history] 2008-02-14 (Sako) initial version 2008-02-26 (Sako) supported POS-MAT file 2008-03-18 (Sako) discarded figure_info 2008-05-28 (Sako) changed format of meg_parm 2011-02-18 (Sako) changed value of bin_data_dir empty Copyright (C) 2011, ATR All Rights Reserved. License : New BSD License(see VBMEG_LICENSE.txt)
0001 function [meg_parm] = vb_set_meg_parm_biosemi(device_code) 0002 % set values to the meg_parm for vb_job_eeg (BIOSEMI) 0003 % [usage] 0004 % [meg_parm] = vb_set_meg_parm_biosemi(device_code) 0005 % [input] 0006 % device_code : <optional> device code for 1) BIOSEMI 0007 % : default is [1] 0008 % [output] 0009 % meg_parm : <<struct>> meg_parm 0010 % : .Measurement : 'EEG' 0011 % : .device : 'BIOSEMI' 0012 % : .measurement_file : input file (normally *.bdf) 0013 % : .pos_file : position file (*.pos.mat) 0014 % : .output_file : output file (normally *.eeg.mat) 0015 % : .bin_data_dir : binary data directory which is 0016 % : : a relative path from output_file 0017 % : .eeginfo_version : EEGinfo version (unused) 0018 % : .verbose_swt : verbose message switch [false] 0019 % [note] 0020 % 0021 % [history] 0022 % 2008-02-14 (Sako) initial version 0023 % 2008-02-26 (Sako) supported POS-MAT file 0024 % 2008-03-18 (Sako) discarded figure_info 0025 % 2008-05-28 (Sako) changed format of meg_parm 0026 % 2011-02-18 (Sako) changed value of bin_data_dir empty 0027 % 0028 % Copyright (C) 2011, ATR All Rights Reserved. 0029 % License : New BSD License(see VBMEG_LICENSE.txt) 0030 0031 if ~exist('device_code', 'var') || isempty(device_code) 0032 device_code = 1; 0033 end 0034 0035 func_ = mfilename; 0036 0037 % --- EEG --- % 0038 if device_code == 1 0039 0040 % --- REQUIRED --------------------------------------------------- % 0041 0042 meg_parm = vb_meg_parm_set_measurement([], 'EEG', 'BIOSEMI'); 0043 0044 % % --- bdf_spec 0045 % % conditions to read BDF file 0046 % % subject 0047 meg_parm.measurement_file = ''; 0048 meg_parm.pos_file = ''; 0049 meg_parm.output_file = ''; 0050 meg_parm.bin_data_dir = ''; 0051 % --- notice --- % 0052 % meg_parm.bin_data_dir is the relative path from meg_parm.output_file 0053 % -------------- % 0054 0055 % --- OPTIONAL --------------------------------------------------- % 0056 meg_parm.eeginfo_version = []; % not be used 0057 meg_parm.verbose_swt = []; 0058 0059 else 0060 error('(%s)undefined device_code : %d', func_, device_code); 0061 end 0062 0063 %%% END OF FILE %%%