Go to Post If you don't have anything nice to say, don't say it all. I mean, I know we all get frustrated during build season, but we still need to make an effort to be polite and helpful. - Karthik [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2010, 17:44
JMillar's Avatar
JMillar JMillar is offline
Registered User
FRC #2172 (Streetleagle)
Team Role: Leadership
 
Join Date: Feb 2010
Rookie Year: 2007
Location: Lakewood, Ohio
Posts: 7
JMillar is an unknown quantity at this point
Programming the Pressure Sensor

How do you program a pressure sensor, from the Kit of Parts, in Labview?
Also, can you make the pressure sensor analog?
Diagrams in Labview would be preferred.
Thanks.
  #2   Spotlight this post!  
Unread 02-02-2010, 18:08
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Programming the Pressure Sensor

The pressure switch is a digital sensor, no analog.

When you Open Compressor, you set the digital port for the pressure switch and the relay port for the compressor. Then, when you start the compressor (with Compressor Start), it sets up an interrupt on the digital port, allowing you to not have to worry about the pressure switch at all.

There are other threads on this topic, next time search before posting.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #3   Spotlight this post!  
Unread 02-02-2010, 21:47
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Programming the Pressure Sensor

You can add an analog pressure transducer to the pneumatic system if you like. There was one provided in the 2004 Kit of Parts; I think it was from TI. You still have to use the Nason pressure switch to control your compressor, however.
  #4   Spotlight this post!  
Unread 02-02-2010, 21:56
JMillar's Avatar
JMillar JMillar is offline
Registered User
FRC #2172 (Streetleagle)
Team Role: Leadership
 
Join Date: Feb 2010
Rookie Year: 2007
Location: Lakewood, Ohio
Posts: 7
JMillar is an unknown quantity at this point
Re: Programming the Pressure Sensor

Thanks apalrd, I know there are other posts about it but what I am really intrested in is the accual diagram of the program in Labview.
  #5   Spotlight this post!  
Unread 02-02-2010, 22:31
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Programming the Pressure Sensor

Quote:
Originally Posted by JMillar View Post
Thanks apalrd, I know there are other posts about it but what I am really intrested in is the accual diagram of the program in Labview.
Look at the Solenoid with Compressor Example.
  #6   Spotlight this post!  
Unread 02-02-2010, 22:35
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Programming the Pressure Sensor

This is the section from our Begin.vi involving the compressor. Note that the "Open" block is in a case structure; this allows us to have two sets of IO for our practice and competition robots, and is not required in your setup. We open the compressor and set it's sensor and relay ports, then start it, then set it to a refnum. We don't need it anywhere but here, except to close the compressor in Finish.vi. Once we call "Start", the compressor sets up an interrupt on the pressure switch port and switches the Spike for the compressor on change. You need to do nothing to handle the compressor or pressure switch at all. If you need the status of the pressure switch, then you can use the Compressor Get Refnum to get the refnum and a Get Enabled State to check if the compressor is enabled and if it is on.
Attached Thumbnails
Click image for larger version

Name:	comp.png
Views:	218
Size:	4.1 KB
ID:	8482  
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pressure Sensor lasereyes Pneumatics 3 18-02-2008 02:02
Does the Norgren Pressure Regulator show working pressure or stored pressure? Madison Pneumatics 7 14-02-2008 17:40
pressure sensor drosophyllum Pneumatics 6 05-12-2007 20:49
Translating pressure sensor readout into actual pressure Mercutio Pneumatics 0 13-02-2004 16:29
Error found in programming for the pump and pressure switch sjharobotics Programming 4 06-02-2002 17:46


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

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