Skip to main content
  • Description
  • Computes mean, minimum and maximum values of an .eeg file in time windows and outputs in a text file.

  • Usage
  • eegmval myeegfile.eeg myposfilein.pos myparfile.par [window_file.t.wnd]

    with :

    • myeegfile.eeg: input .eeg file to process (with extension).
    • myposfilein.pos: input event file (with extension).
    • myparfile.par: text parameter file (with extension) for measurements.
    • options:
      window_file.t.wnd : text file containing time window description. If omitted, time windows are created from the parameter file myparfile.par .


  • Fields of parameter file and examples
  • fileprefix myfilename_out Prefix of the output text files.
    nb_eventcode 2 Number of event codes to process.
    list_eventcode 2 5 List of the event codes to process.
    prestim_nbsample 400 800 List of the numbers of samples in the prestimulus period; one value for each event code.
    poststim_nbsample 1000 1200 List of the numbers of samples in the poststimulus period; one value for each event code; the total number of samples of the analysis is prestim_nbsample + poststim_nbsample + 1, the extra sample corresponds to the event itself.
    ep_channel_flag 1 1 0 1 0 0 0 List of the channels to take measurements: 1/0 for selected/unselected channels; the total number of flags is N+2, N being the number of recorded channels in myeegfile.eeg file; the last 2 flags should be set to 0.
    In this example, N=5, and only channels number 1, 2, 4 will be averaged and stored in the output .p files.
    ep_channel_ref 0 5 0 6 0 0 0 List of the new reference for each channel before taking measurements (bipolar montage for instance):
    0: no change of the reference,
    ≠0: electrode number (rank) to which the current channel should be re-referenced.
    The total number of values is N+2, N being the number of recorded channels in myeegfile.eeg file; the last 2 flags should be set to 0.
    This field is optional. If omitted, the channels are not modified.
    In this example, N=5, and channel 1 is unchanged, channel 2 is referenced to channel 5, and channel 4 re-referenced to channel 6.
    eegmval_time_hw 50 Half time window (in msec) of the measurements.
    This parameter is required only if no window file is provided.
    eegmval_time_step 50 Time step (in msec) for the sliding window of the measurements.
    This parameter is required only if no window file is provided.



    Window file format (window_file.t.wnd) :

    wnd_nb 2 Number of time windows.
    wnd_list -250 -50
    500 750
    Beginning and end (in msec) latencies list for each window. The time 0 is at the event code.
    In this example, the 1st window starts at -250 ms and ends at -50 ms, and the 2nd window starts at 500 ms and ends at 750 ms.
    wnd_label_list wnd_1
    wnd_2
    Window label list. Each label is on one line.
    In this example, the 1st window has label 'wnd_1', and the 2nd window has label 'wnd_2' .


  • Examples


  • Comments
    • See eegchref to create a re-referenced .eeg data file (several referencing options available).


  • Current version
  • 1.04 29-09-2010

  • History
    • 1.02 14-01-2004 (PEA) : 1st documented version.
    • 1.03 29-11-2006 (PEA) : correction files larger than 2GB. Modification for use of rejection flag in .pos file.
    • 1.04 29-09-2010 (PEA) : update to use cmake and free release of Elan.


  • Files
  • $ELANPATH/bin/eegmval

  • See also
  • eegchref, eegstat, eegavg