|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Analog Pressure Sensor Labview Programming
If you're using the REV Robotics Analog Pressure Sensor, their datasheet has an equation to convert the voltage measured by the analog channel to the pressure measured by the sensor.
Datasheet: http://www.revrobotics.com/wp-content/uploads/2015/11/REV-11-1107-DS-00.pdf I don't have access to an FRC version of LabVIEW today, but I made a quick subVI that calculates the pressure from a given voltage (The VI is just the equation in the datasheet). You should be able to use the AI Open.vi in begin to name the reference, then use the AI Get Raw Voltage.vi in teleop (or autonomous) and wire that value right to the subVI to get the pressure. Hope this helps! |
|
#2
|
||||
|
||||
|
Re: Analog Pressure Sensor Labview Programming
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.
|
|
#3
|
|||||
|
|||||
|
Re: Analog Pressure Sensor Labview Programming
Quote:
|
|
#4
|
||||
|
||||
|
Re: Analog Pressure Sensor Labview Programming
Quote:
Here is a link to the VI that we're using to convert the voltage to a pressure. Last edited by RyanN : 04-04-2016 at 09:58. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|