We are trying to use the Analog Pressure sensor to display the pressure of the pneumatic system of the robot during the match. We are using LabVIEW robot code, and the sensor is plugged into the Analog Ports on the roboRIO. We used the AI Open.vi and the AI Get Value.VI in LabVIEW to retrieve the data. However, it is returning values between 398-402. How do we fix this issue and get the correct value from the sensor?
I used the Get Voltage.Vi and plugged the output into the Volts to PSI.vi, and printed that value, but now I am getting values between -.5 and -.3… Is there anything that I could be doing wrong? The yellow wire on the sensor is plugged into the Signal port on the roboRIO’s Analog 0 port.