Help please, problems reading analog samples

Hello,

I am trying to get analog to digital conversion from a 0V to 10V output from a 
sensor.

Although with a voltage tester the output of the signal is stable (the sensor 
is allways measuring the same for testing), when I read it with comedi I have 
an unstable read. Also if I read another channel that is not used (no signal 
on it) I have a value similar to the one I get on the channel of the sensor.
I have tried to read the signal in differential and single, and with 
AREF_GROUND and AREF_COMMON.
I am using latest comedi and an Advantech PCI-1710HG card.
I read samples with the comedi_data_read instruction as follows...

comedi_data_read(it, shcom->ai_subdev,AI_CHANNEL_IBC, DEFAULT_CHANNEL_GAIN_AI, 
AREF_COMMON, &data);

Please help me! I am desperated!!

-- 
-----------------------------------------------
Luis Javier Martínez Martínez
			

Received on 2003-10-18Z15:39:55