Specifications
Comedi
72 / 148
Status
deprecated
Description
The function comedi_sv_init() initializes the slow varying Comedi structure pointed to by sv to use the device device,
the analog input subdevice subdevice, and the channel channel. The slow varying Comedi structure is used by comedi-
_sv_measure() to accurately measure an analog input by averaging over many samples. The default number of samples is
100.
Return value
This function returns 0 on success, -1 on error.
5.4.7.4 comedi_sv_measure
comedi_sv_measure — slowly-varying inputs
Synopsis
#include <comedilib.h>
int comedi_sv_measure(comedi_sv_t * sv, double * data);
Status
deprecated
Description
The function comedi_sv_measure() uses the slowly varying Comedi structure pointed to by sv to measure a slowly varying
signal. If successful, the result (in physical units) is stored in the location pointed to by data, and the number of samples is
returned. On error, -1 is returned.
5.4.7.5 comedi_sv_update
comedi_sv_update — slowly-varying inputs
Synopsis
#include <comedilib.h>
int comedi_sv_update(comedi_sv_t * sv);
Status
deprecated
Description
The function comedi_sv_update() updates internal parameters of the slowly varying Comedi structure pointed to by sv.