示例#1
0
float DaqDevice::getVolAnalogInput(int channel)
{
    return  comedi_to_physical(_an_input[channel], &_converter_an_input[channel]);
}
示例#2
0
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;
}
示例#3
0
文件: dyncal.c 项目: glutamate/bugpan
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);
}