In that case, the INPUT and OUTPUT cables seem to refer to the input and output to the rangefinder. Those should be swapped on the Rio, since output from rio = input to range finder and vice versa. Your instantiation seems to declare 0 as the Output from the Rio (INPUT to rangefinder) and 1 as the Input to Rio (OUTPUT to rangefinder). I might be mistaken, but maybe try swapping these either in code or in wiring?

The WPILib VI we used last year for that exact sensor ‘bricked’ our roboRio twice. We can not recommend using that sensor with LabView, nor the sensor. For details, PM me and I can have our programmer give you extensive info.

Just to be clear - we love the sensor, VEX products are great, just not how it killed our Rio…

Our students hooked one up today and printed the voltage to the smart dashboard. They put a stack of totes 1 foot in front and reocorded voltage.
Repeat at 2 feet, 3. . .10. They found a linear relationship somewhere around .3v = 1ft.

I found that formula I don’t know how to get the Vcc, the supplied voltage

that formula is for calculating the voltage scale factor
(Vcc/512) = Vi]
Vcc = Supplied Voltage
Vi = Volts per inch (Scaling)

Example 1: Say you have an input voltage of +5.0V the formula would read:
(5.0V/512) = 0.009766V per inch = 9.766mV per inch]

and that formula for calculating the range

The range formula is:
(Vm/Vi) = Ri]
Vm = Measured Voltage
Vi = Volts per Inch (Scaling)
Ri = Range in inches

Example 2: To get comfortable with this equation use a known distance by using a ruler. Say the multimeter shows 292.98mV then you use the calculations as follows:
(292.98mV/9.766mV) = 30 inches]

I got the Vex rangefinder working, but it only works when I plug it onto the Navx D/IO port.
Anyway the most important, I get it work, thank for your help.