Yes, I've double checked. Just to be sure the code fragment is: if (ev == 0xffffffff) { return I1DISP_FLOAT_NOT_SET; } A printf just before tells me that ev is 0x0 Hope that helps. Mike On 07/04/2010 03:47, Graeme Gill wrote:
Michael Karliner wrote:I just pressed 'space' to take a reading.....darkcal[0] = -680564693277057720000000000000000000000.000000 darkcal[1] = -680564693277057720000000000000000000000.000000 darkcal[2] = -680564693277057720000000000000000000000.000000Hmm. Are you sure this is the version that's been modified to "return I1DISP_FLOAT_NOT_SET" ? The above darkcal values correspond to 0xffff values, which is why the readings are wrong. If 0xffff is detected and returns the above return code, darlcal should be set to 0 instead, and the measurement should be more reasonable. Graeme Gill.