Skip to main content
  • Description
  • Detects pulses (triggers) on analog continuous channels of an EEG file, and creates a new EEG file with event codes stored in the digital channel. It requires a parameter file to define the pulse detection thresholds and event codes.


  • Usage
  • eegdetecttrig [-?] eegfilein.eeg parameterfile.trig.par eegfileout.eeg

    with :

    • eegfilein.eeg : input EEG file (with extension) with pulses on some channels.
    • parameterfile.trig.par : parameter file (with extension) for pulse detection.
    • eegfileout.eeg : output EEG file (with extension) after pulse detection with event codes stored in the digital channel.
    • option :
      -? : to display details on the parameter file.


  • Fields of parameter file and example
  • trigger_nb 2 Number of analog channels with pulses (triggers).
    trigger_channel 38 40 Channel numbers with trigger signals.
    In this example, channels # 38 and 40 contain pulses.
    trigger_threshold 10 10 Threshold values (in microVolts or physical units) above (or below) which
    the trigger signals will be detected.
    In this example, threshold will be 10 microVolts for both channels.
    trigger_rise_fall 1 1 Detection on the rising (1) or falling (-1) edge of the pulses.
    In this example, detection will be performed on the rising edge for both channels.
    trigger_code 10 12 Digital codes (<=65535) that is generated for all pulses on each channel.
    In this example, trigger codes 10 and 12 are generated for pulses found on channels # 38 and 40 respectively.


  • Example

  • Comments


  • Current version
  • 1.18 23-09-2010

  • History
    • 1.15 01-12-2003 (PEA) : 1st version with documentation.
    • 1.16 05-06-2007 (PEA) : read/write files by block instead of sample.
    • 1.17 13-08-2007 (PEA) : minor modification.
    • 1.18 23-09-2010 (PEA) : update to use cmake and free release of Elan.


  • Files
  • $ELANPATH/bin/eegdetecttrig

  • See also