Skip to main content
  • Description
  • Converts ASCII file with multiplexed data to EP file (.p).

  • Usage
  • epfromtxt ascii_file.txt parameterfile.par myepfile_out.p

    with :

    • ascii_file.txt : input text file to convert (with extension).
    • parameterfile.par : conversion parameter file (with extension).
    • myepfile_out.p : output EP filename (with extension).


  • Fields of parameter file and example
  • nchan 28 Number of channels.
    nsamp 1000 Total number of samples.
    The total number of samples of the analysis is (number of samples in the prestimulus) + (number of samples in the poststimulus) + 1, the extra sample corresponds to the event itself.
    prestim_nsamp 200 Number of samples in prestimulus.
    sampling_period_msec 1.0 Sampling period (in ms).
    In this example, the sampling period is 1 ms, which corresponds to a sampling frequency of 1000 Hz.
    erpa_positivity 1 Value stored in the output .p file to set the default upward/downward positivity orientation for curve display (by erpa):
    -1 (positivity down) or 1 (positivity up)
    electrodes
    42
    43
    14
    15
    16
    48
    40
    41
    49
    32
    8
    9
    10
    11
    12
    33
    50
    13
    17
    51
    3
    4
    5
    6
    7
    1
    2
    39
    List of channel number (indices in elec.dat).

    In the example above, the electrodes list corresponds to the following labels and positions :

    name # in elec.dat r (mm) theta (deg) phi (deg)
    CP1 42 90.000000 31.500000 223.100006
    CP2 43 90.000000 31.500000 316.899994
    F3 14 90.000000 63.099998 136.899994
    Fz 15 90.000000 45.000000 90.000000
    F4 16 90.000000 63.099998 43.099998
    FT3 48 90.000000 75.599998 159.699997
    FC1 40 90.000000 31.500000 136.899994
    FC2 41 90.000000 31.500000 43.099998
    FT4 49 90.000000 75.599998 20.299999
    M1 32 90.000000 120.000000 215.600006
    T3 8 90.000000 90.000000 180.000000
    C3 9 90.000000 45.000000 180.000000
    Cz 10 90.000000 0.000000 0.000000
    C4 11 90.000000 45.000000 0.000000
    T4 12 90.000000 90.000000 0.000000
    M2 33 90.000000 120.000000 324.399994
    TP3 50 90.000000 75.599998 200.300003
    F7 13 90.000000 90.000000 144.000000
    F8 17 90.000000 90.000000 36.000000
    TP4 51 90.000000 75.599998 339.700012
    T5 3 90.000000 90.000000 216.000000
    P3 4 90.000000 63.099998 223.100006
    Pz 5 90.000000 45.000000 270.000000
    P4 6 90.000000 63.099998 316.899994
    T6 7 90.000000 90.000000 324.000000
    O1 1 90.000000 90.000000 252.000000
    O2 2 90.000000 90.000000 288.000000
    Fpz 39 90.000000 90.000000 90.000000


  • Examples

  • Comments

  • Current version
  • 1.02 29-09-2010

  • History
    • 1.00 30-03-2000 (PEA) : 1st version.
    • 1.01 ? (PEA) : minor modification.
    • 1.02 29-09-2010 (PEA) : updates to use cmake and free release of Elan. Reads electrode numbers as int instead of float.


  • Files
  • $ELANPATH/bin/epfromtxt

  • See also