next up previous contents
Next: Support Up: Creating structures Previous: WFDB_Siginfo   Contents


WFDB_Annotation

Usage: ANN = WFDB_Annotation(N);  
Input: N: number of Annotation structures to be created  
Output: S: Anninfo structure(s)  

Use this function to create Annotation structures to be passed as input to WFDB_putann. Annotation structures have six fields:

time integer the sample number to which the annotation `points'; defaults set by WFDB_Annotation are 1, 2, 3, ....  
anntyp integer the annotation type, an integer between 1 and ACMAX (defined in `<wfdb/ecgcodes.h>'); default is 1  
subtyp integer the annotation subtype, an integer between -128 and 127; default is 0  
chan integer the annotation chan field, an integer between -128 and 127; default is 0  
num integer the annotation num field, an integer between -128 and 127; default is 0  
aux string the annotation aux string; default is an empty string  

The subtyp, chan, and num fields do not have any preassigned meanings; they may be used to record any small integers, or left at their default (0) values, in which case they will not occupy space in the annotation file. Note that the length of the aux string may not exceed 254 characters.


next up previous contents
Next: Support Up: Creating structures Previous: WFDB_Siginfo   Contents
George B. Moody 2005-06-02