next up previous contents
Next: WFDB_Annotation Up: Creating structures Previous: WFDB_Anninfo   Contents


WFDB_Siginfo

Usage: S = WFDB_Siginfo(N);  
Input: N: number of Siginfo structures to be created (number of signals to be written)  
Output: S: Siginfo structure(s)  

Use this function to create Siginfo structures to be passed as input to WFDB_osigfopen. Siginfo structures have twelve fields:

fname string the name of the signal file (may be shared among consecutively numbered signals); default: record.dat  
desc string description of the signal (e.g., `ABP', `Resp'); default: `Signal 0', `Signal 1', ...  
units string physical units of the signal (e.g., `mmHg', `%'); default: 'mV'  
gain real number of A/D units per physical unit; default: 200  
initval integer value of sample 0, in ADC units; default: 0  
group integer group number (all signals sharing a signal file belong to the same group); default: 0  
fmt integer storage format (one of those defined in WFDB_FMT_LIST, in <wfdb/wfdb.h>); default: 16  
spf integer samples per frame; default: 1  
bsize integer bytes per block (for use with tape and other block-structured storage media; 0 for ordinary files); default: 0  
adcres integer ADC resolution in bits; default: 12  
adczero integer sample value corresponding to the middle of the ADC range; default: 0  
baseline real (possibly fictitious) sample value corresponding to an input of 0 in physical units; default: 0  

The default values indicated above are filled in by WFDB_Siginfo. Any changes to these values must be made before invoking WFDB_osigfopen; later changes have no effect.


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