next up previous contents
Next: WFDB_getifreq Up: Special Input Modes Previous: Special Input Modes   Contents


WFDB_setifreq

Usage: WFDB_setifreq(IFREQ);  
Input: IFREQ: desired 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), 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)



George B. Moody 2005-06-02