FAQ: How to access Event/Marker information ?

From: Alois Schlögl <alois.schloegl ***AT***tugraz.at>
Date: Wed, 23 Mar 2005 12:21:01 +0100
Subject: FAQ: How to access Event/Marker information ?
Newsgroups: tu-graz.biosig
Organization: Technische Universitaet Graz
Message-id: <d1rj8j$nd9$1@fstgss00.tu-graz.ac.at>
User-agent: Mozilla Thunderbird 0.9 (Windows/20041103)

Q3) How can I access the Event and marker information?

A3) After HDR=sopen(...) or [s,HDR]=sload(...), you can access the event information through the following fields:

HDR.EVENT.TYP type of event/marker/annotation according to table biosig/t200/eventcodes.txt or the latest version from http://cvs.sourceforge.net/viewcvs.py/biosig/biosig/t200/eventcodes.txt?view=markup
HDR.EVENT.POS   position in samples
HDR.EVENT.DUR	duration of event (in samples)
HDR.EVENT.CHN	associated channel, 0 if event applies to all channels

The fields DUR and CHN might not be present if all their elements are zero.