[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

setsampfreq

 
int setsampfreq(WFDB_Frequency freq)
Return:

0
Success
-1
Failure: illegal sampling frequency specified (freq must not be negative)

This function sets the sampling frequency used by the time-conversion functions (see section [ms]timstr). Use setsampfreq before creating a new `hea' file (see section newheader). See section Example 8: Creating a New Database Record, for an illustration of the use of setsampfreq.



George B. Moody (george@mit.edu)