Go to Post if your robot weighs 1-1/2 tons, you have bigger problems then the legality of that jack... - ekapalka [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi