Thanks for the input.The ranging occurs with no error initially, that is, range status 0. Therefore I could conclude that my ROI is getting set. But my issue is that error 13 only arises when the following events occur :
I shift my sensor slightly
There is increased sunlight being incident on the sensor
If you look in the code, we translated the error numbers from the hardware values to something more reasonable. (no one would tolerate a 9 as a success code.)
But error 13 was not translated. So it has to be something with the ROI.
Can you tell me if the ROI is large or small? Is it near the edge?
Despite the error 13, did you get the correct ranging error? (Sometimes these 'errors' are more of a warning and might return a reasonable answer.)
I've never seen a 13 error, so I've no experience with it.