[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUDITORY] Software/code for insertion of a large number of triggers.
I assume you are talking about an evoked potentials
experiment, where you basically want to record the stimulus
along with the response. But you are not really interested
in the stimulus itself, just the timing of the onset.
The way I do this with my Daqarta software is to generate
the stimulus (tone burst, typically) on one stereo channel,
and an exactly aligned pulse on the other. The tone burst
output is sent to the subject, while the pulse version is
sent back to one of the input channels. The other input
channel receives the EEG response from the subject.
I start the pulse at the moment of onset of the tone burst
(the start of the rise portion), which then serves as the
reference for latency measurements. That's also the
trigger event for averaging, although Daqarta allows
positive or negative trigger delay relative to this point.
(Positive delay allows the averager time window to be later
than the trigger event, but still exactly aligned.
Negative delay allows you to see what led up to the
Note that with the above approach there is no need for a
.WAV file with triggers. The triggers are generated and
the response is averaged in real-time, so all you need to
save is the final averaged result. (You *could* save the
raw file with both the pulse and response channels, but
there is normally no need for that.) This way. there is no
separate processing step, and *way* less raw data to keep
The only reason I can think of to post-process is if you
are doing some sort of tricky "hoop jumping" artifact
rejection. Daqarta has a simple scheme that omits from the
average any frame that includes any value outside of a
specified range you select. It also shows you when frames
are being rejected, so you can deal with it right then.
That's important if (say) the subject animal's anesthetic
is wearing off and it's starting to twitch... you not only
don't waste time collecting bad data that would later be
rejected by post-processing, but you also get more good
data from an experiment.
On 6 Sep 2013 at 8:36, Pragati Rao wrote:
> Dear All,
> I have to insert triggers for an EEG experiment (almost 3000 triggers) into
> a wav file. Adobe audition or Goldwave can be used for this purpose. The
> process is very time consuming. Does anyone know of a more time-efficient
> way of doing this? Perhaps a MATLAB code?
> I tried getting the sound presentation software to send cue events, but I
> was advised by presentation (neurobehavioral system) to have this trigger
> information within the sound file (so that timing information is precise).
> Any help is appreciated.
> Pragati Rao,
> PhD Candidate and Research Audiologist,
> Room 1.612, Level 1,
> Australian Hearing Hub,
> 16 University Avenue,
> Macquarie University,
> NSW 2109
D A Q A R T A
Data AcQuisition And Real-Time Analysis
Scope, Spectrum, Spectrogram, Signal Generator
Science with your sound card!