next up previous contents
Next: WFDB_getifreq Up: Special input modes Previous: Special input modes   Contents


WFDB_setifreq

WFDB_setifreq(IFREQ);

IFREQ: Input sampling frequency.

This function sets the current input sampling frequency (in samples per second per signal). It should be invoked after opening the input signals (using WFDB_isigopen), and before using any of WFDB_getvec, WFDB_getann, WFDB_putann, WFDB_isigsettime, WFDB_isgsettime, WFDB_timstr, WFDB_mstimstr, or WFDB_strtim. Note that the operation of WFDB_getframe is unaffected by WFDB_setifreq.

Use WFDB_setifreq when your application requires input samples at a specific frequency. After invoking WFDB_setifreq, WFDB_getvec resamples the digitized signals from the input signals at the desired frequency (see section 3.3.1), and all of the WFDB_tools functions that accept or return times in sample intervals automatically convert between the actual sampling intervals and those corresponding to the desired frequency.

See also: WFDB_getvec (3.3.1)



George Moody 2003-11-30