|
Analog Maxbotix XL-EZ4
I was wondering if I could get any help programming a Maxbotix XL-EZ4. (in C++) I did read through the API, and the spec sheets for the sensor but I'm still a little confused. So I know that the XL is approximately 4.9mv per inch. On the arduino which I tested the sensor, I could simply get the value of the sensor (1-1024) and that would be the cms.
This is a quote from the spec sheet:
Analog output of distance reading: (Vcc/1024) / cm (4.9 mV/cm when input voltage Vcc = 5 V)
The analog on the CRIO however is scaled to 10v instead of the 5v from the arduino, although the output from the analog sidecar is 5. I also don't understand whether I should use the GetVoltage or GetValue, and I also don't understand how I scale it. (And an explanation of how you came up with the numbers would be appreciated as I attempt to understand)
Sorry if this is a stupid question- it's my first time using an analog sensor with the CRIO.
Ben
|