[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
int osigfopen(WFDB_Siginfo *siarray, unsigned int nsig) |
fname
or desc
too
long, illegal fmt
or bsize
, or incorrect signal group
assignment)
This function opens output signals as does osigopen
, but the
signal specifications, including the signal file names, are supplied by
the caller to osigfopen
, rather than read from a header
file as in osigopen
. Any previously open output signals are
closed by osigfopen
. siarray is a pointer to an array of
WFDB_Siginfo
structures
(see section 3.1 Signal Information Structures),
one for each signal to be opened. nsig is the number of
WFDB_Siginfo
structures in siarray.
Before invoking osigfopen
, the caller must fill in the fields of
the WFDB_Siginfo
structures in siarray (see section 3. Data Types;
the initval
, nsamp
, and cksum
fields may be left
uninitialized, however). To make a multiplexed signal file, specify the
same fname
and group
for each signal to be included
(see section 5.3 Multiplexed Signal Files). For ordinary (non-multiplexed)
signal files, specify a unique fname
and group
for each
signal. See section Example 8: Creating a New Database Record, for an illustration of the use of
osigfopen
.
As a special case, if nsig is 0, siarray can be NULL
.
This can be useful to force open output signal files to be closed
without closing open annotation or input signal files.