trying to manually add a single trigger event

Don et el.,

Please ignore my last post. I mistakenly thought the trigger file was
identical to the trigger channel. Now I think I need to add a trigger
channel, but do not know how. I have an EDF EEG file I am importing, but
it does not have any trigger events.

-Jeff

Hi Jeff,

It looks like you are right, i.e. that you need an event file. You can manufacture a .txt version which looks like this:
42000 42.000 0 0
42182 42.182 0 23

The first line details how long the delay was between the time that the acquisition was initiated and the time that the data began being saved. So 42.000 sec is a subtractor. I forget how to find this but the number is embedded in the raw data .fif file

The second line is the time at which the event occurs. Since you specified "event 23" in your .ave file, use 23 as I have here.

One joker that may not apply. I use a command that looks like this to generate an "average" from a single raw data trial:
   /home/kriegerd/Contrib/mne/bin/mne_process_raw \
        --ave /tmp/GenSingle.ave \
     --events /tmp/GenSingle.eve \
     --raw Data1_raw.fif \
     --raw Data1_raw.fif \
     --gave /tmp/GenSingle.fif

This uses the .eve file twice, on the two raw data files. Note that they are the same. So it averages 2 instances of the same thing. When I wrote this I couldn't get it to work with a single trial.

Hope this helps.

Don

Don Krieger, Ph.D., D.ABNM
Department of Neurological Surgery
University of Pittsburgh
(412)648-9654