View Single Post
  #2   Spotlight this post!  
Unread 01-04-2016, 09:20
Pi Fighter's Avatar
Pi Fighter Pi Fighter is offline
Insert Monty Python Reference Here
AKA: Trevor
FRC #1718 (Fighting Pi)
Team Role: College Student
 
Join Date: May 2009
Rookie Year: 2008
Location: Armada, MI
Posts: 34
Pi Fighter has a spectacular aura aboutPi Fighter has a spectacular aura about
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!
Attached Files
File Type: vi Volts to PSI (subVI).vi (10.5 KB, 18 views)
Reply With Quote