float DaqDevice::getVolAnalogInput(int channel) { return comedi_to_physical(_an_input[channel], &_converter_an_input[channel]); }
double ComediAnalogInputSoftCal::read() { lsampl_t sample; comedi_data_read(m_device, m_subdevice, m_channels[0], m_range, m_aref, &sample); return comedi_to_physical(sample, &m_converter) * m_inputConversionFactor; }
double to_phys(lsampl_t d) { return comedi_to_physical(d, &conv_ai); //return 20.0*((double)d)/((double) 100)-10.0;//comedi_to_phys(d, rangeao, maxdataao); }