Experimental Physics and
I am having trouble trying to adjust the conversion parameters of an analog input record for a A/D converter.
My AD accepts voltages ranging from -10 to 10 volts and has a resolution of 12 bits.
For -10 volts, it produces a digital output of 0
For 10 volts, 4095
I configured the conversion fields as follows:
ESLO 0.004884 // which is (EGUF - EGUL) / 4095
Those values seem right to me but, for example, RVAL=1005 gets converted to VAL=4.9084, when it should be VAL=-5.0916. The problem seems to be that the conversion formula isn't taking into account the EGUL field.
According to the EPICS record reference for aiRecord:
The record processing routine performs the following algorithm for all records except those that use the
Seems like the step 3 is not being completely executed, or considering EGUL = 0...
Does anybody know what is wrong? Probably I'm missing something really obvious, but I couldn't figure it out...
Thanks in advance,
Bruno Seiva Martins
|ANJ, 18 Nov 2013||
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·