Go to Post Repeat after me: "The Internet is my friend." :rolleyes: - Bill Moore [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2013, 17:57
Roboto Roboto is offline
Registered User
FRC #3151
 
Join Date: Feb 2013
Location: New Jersey
Posts: 1
Roboto is an unknown quantity at this point
Post Some programming help on compressors and cylinder pressure

Programmer here. My team wants to have an on board compressor on the robot this year that turns on when the pressure in the tanks in x and shuts off at y pressure. We can can figure out how to turn it off and on. But any help or insights as to how we can get it to turn off/on at certain pressures would be most appreciated.
Reply With Quote
  #2   Spotlight this post!  
Unread 06-02-2013, 19:18
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Some programming help on compressors and cylinder pressure

As long as you have the pressure switch attached to the high side of your system, it will automatically turn itself off and on when it reaches 120 PSI. Make sure you have the switch wired between the signal and ground pins on Digital Input 1 (the default input for the code).
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2013, 22:13
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,112
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: Some programming help on compressors and cylinder pressure

You'll need to Open the compressor in Begin, then Start it, then Set its RefNum with a handy name such as "Compressor". In Periodic Tasks there's already a bit of code that runs the Compressor Control Loop; you just need to enable it and make sure the RefNum Get name matches what you gave it in Begin.

The Compressor functions are in the WPI Robotics Library >> Actuators >> Compressor function subpalette.
Reply With Quote
Reply


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 04:11.

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