Home > vbmeg > functions > template > vb_set_meg_parm_biosemi_test.m

vb_set_meg_parm_biosemi_test

PURPOSE ^

set values to the eeg_parm for vb_job_meg (BIOSEMI)

SYNOPSIS ^

function [eeg_parm] = vb_set_meg_parm_biosemi_test(device_code,session_no)

DESCRIPTION ^

 set values to the eeg_parm for vb_job_meg (BIOSEMI)
 [usage]
   [eeg_parm] = vb_set_meg_parm_biosemi_test(device_code,session_no)
 [input]
   device_code : <optional> device code for 1) BIOSEMI
               :  default is [1]
    session_no : <required> session number []
 [output]
      eeg_parm : <<struct>> eeg_parm
               :  .Measurement      : 'EEG'
               :  .device           : 'BIOSEMI'
               :  .measurement_file : input file (normally *.bdf)
               :  .pos_file         : position file (*.pos.mat)
               :  .output_file      : output file (normally *.eeg.mat)
 [note]

 [history]
   2008-02-14 (Sako) initial version
   2008-02-26 (Sako) supported POS-MAT file
   2008-03-18 (Sako) discarded figure_info
   2008-04-03 (Sako) move device field to the same location of MEG (why?)
   2008-05-26 Masa-aki Sato
     added eeg_parm.meg_file  for consistency with meg data
     added eeg_parm.face_file for sensor plot
     added session_no
     changed meg_parm to eeg_parm
   2008-05-28 (Sako) changed format of eeg_parm
   2011-02-18 (Sako) changed comment of bin_data_dir and deleted unused fields

 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 [eeg_parm] = vb_set_meg_parm_biosemi_test(device_code,session_no)
0002 % set values to the eeg_parm for vb_job_meg (BIOSEMI)
0003 % [usage]
0004 %   [eeg_parm] = vb_set_meg_parm_biosemi_test(device_code,session_no)
0005 % [input]
0006 %   device_code : <optional> device code for 1) BIOSEMI
0007 %               :  default is [1]
0008 %    session_no : <required> session number []
0009 % [output]
0010 %      eeg_parm : <<struct>> eeg_parm
0011 %               :  .Measurement      : 'EEG'
0012 %               :  .device           : 'BIOSEMI'
0013 %               :  .measurement_file : input file (normally *.bdf)
0014 %               :  .pos_file         : position file (*.pos.mat)
0015 %               :  .output_file      : output file (normally *.eeg.mat)
0016 % [note]
0017 %
0018 % [history]
0019 %   2008-02-14 (Sako) initial version
0020 %   2008-02-26 (Sako) supported POS-MAT file
0021 %   2008-03-18 (Sako) discarded figure_info
0022 %   2008-04-03 (Sako) move device field to the same location of MEG (why?)
0023 %   2008-05-26 Masa-aki Sato
0024 %     added eeg_parm.meg_file  for consistency with meg data
0025 %     added eeg_parm.face_file for sensor plot
0026 %     added session_no
0027 %     changed meg_parm to eeg_parm
0028 %   2008-05-28 (Sako) changed format of eeg_parm
0029 %   2011-02-18 (Sako) changed comment of bin_data_dir and deleted unused fields
0030 %
0031 % Copyright (C) 2011, ATR All Rights Reserved.
0032 % License : New BSD License(see VBMEG_LICENSE.txt)
0033 
0034 if ~exist('device_code', 'var') || isempty(device_code)
0035   device_code = 1;
0036 end
0037 
0038 func_ = mfilename;
0039 
0040 % --- EEG --- %
0041 if device_code == 1
0042   % --- REQUIRED --------------------------------------------------- %
0043   eeg_parm = vb_meg_parm_set_measurement([], 'EEG', 'BIOSEMI');
0044   
0045   % some working variables
0046   data_dir = [getenv('MATHOME') '/EEG-NIRS_20080423/RawEEG/'];
0047   pos_dir  = [getenv('MATHOME') '/EEG-NIRS_20080423/Positioning/'];
0048   subject  = 'Takao_Sako';
0049   eeg_id   = [...
0050     '20080408_175108';
0051     '20080408_180210';
0052     '20080408_181507';
0053     '20080408_182503';
0054     '20080408_183515';
0055     '20080408_184615';
0056     '20080408_185631';
0057     '20080408_190536';
0058     ];
0059   eeg_name = eeg_id(session_no,:);
0060   
0061   % --- Setting to read BDF file
0062   % --- Input Raw data path - absolute path
0063   eeg_parm.measurement_file = [data_dir 'Sako_' eeg_name '.bdf'];
0064 
0065   % --- Input Positioning data path - absolute path
0066   eeg_parm.pos_file = [pos_dir subject '.pos.mat'];
0067 
0068   % --- Output EEG-MAT file - relative path from 'proj_root'
0069   eeg_parm.output_file = [eeg_name '.eeg.mat'];
0070   
0071 else
0072   error('(%s)undefined device_code : %d', func_, device_code);
0073 end
0074 
0075 %%% END OF FILE %%%

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005