Go to Post any robot that can hold and transport its team has found its purpose and can be considered complete - Nitroxextreme [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 17-02-2013, 16:46
ww2freak8 ww2freak8 is offline
Registered User
FRC #4345
 
Join Date: Jan 2012
Location: CARSON
Posts: 12
ww2freak8 is an unknown quantity at this point
Exclamation Programming a compressor

Pleas Help! we are having trouble programming and getting the compressor to work, we have it wired correctly via the port 1 and 1 on the DIO and Relay ports and the compressor does have the pressure sensor hooked up but have not the slightest clue on how i would get it to start running, anything would be of help, preferebly pictures too. thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2013, 16:52
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: Programming a compressor

Part of a general LabVIEW document I wrote explains how to initialize and configure a compressor. You can read what I wrote here.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-02-2013, 17:00
ww2freak8 ww2freak8 is offline
Registered User
FRC #4345
 
Join Date: Jan 2012
Location: CARSON
Posts: 12
ww2freak8 is an unknown quantity at this point
Re: Programming a compressor

it says i cant access that link because it requires a hightend security
Reply With Quote
  #4   Spotlight this post!  
Unread 17-02-2013, 17:02
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Programming a compressor

Quote:
Originally Posted by ww2freak8 View Post
it says i cant access that link because it requires a hightend security
I was able to access it fine, but I've attached it as a PDF for you.
Attached Files
File Type: pdf HowToCodeAnAwesomeRobotinLabVIEW.pdf (321.8 KB, 44 views)
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #5   Spotlight this post!  
Unread 17-02-2013, 17:09
ww2freak8 ww2freak8 is offline
Registered User
FRC #4345
 
Join Date: Jan 2012
Location: CARSON
Posts: 12
ww2freak8 is an unknown quantity at this point
Re: Programming a compressor

Quote:
Originally Posted by plnyyanks View Post
I was able to access it fine, but I've attached it as a PDF for you.
Thanks! ill be checking this out right now and post any results i get shortly
Reply With Quote
  #6   Spotlight this post!  
Unread 17-02-2013, 17:49
ww2freak8 ww2freak8 is offline
Registered User
FRC #4345
 
Join Date: Jan 2012
Location: CARSON
Posts: 12
ww2freak8 is an unknown quantity at this point
Re: Programming a compressor

yeah it still isnt working, ill provide screenshots and maybe ya guys can tell me whats wrong?
Reply With Quote
  #7   Spotlight this post!  
Unread 17-02-2013, 17:58
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: Programming a compressor

Did you make sure to put the control loop in Periodic Tasks? You'll need that if you actually want the compressor to do anything.
Reply With Quote
  #8   Spotlight this post!  
Unread 17-02-2013, 18:01
ww2freak8 ww2freak8 is offline
Registered User
FRC #4345
 
Join Date: Jan 2012
Location: CARSON
Posts: 12
ww2freak8 is an unknown quantity at this point
Re: Programming a compressor

yeah its at the bottom here.
Reply With Quote
  #9   Spotlight this post!  
Unread 17-02-2013, 18:05
bvisness's Avatar
bvisness bvisness is offline
Programming Mentor, Former Driver
FRC #2175 (The Fighting Calculators)
Team Role: Mentor
 
Join Date: Feb 2011
Rookie Year: 2010
Location: Woodbury, MN
Posts: 181
bvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of lightbvisness is a glorious beacon of light
Re: Programming a compressor

Your code looks fine. I do notice that your code has Relay 3 listed for the compressor in Begin, but you said in your original post that you have the compressor connected to port 1 on the relay module. That might be your problem...
Reply With Quote
  #10   Spotlight this post!  
Unread 17-02-2013, 18:06
ww2freak8 ww2freak8 is offline
Registered User
FRC #4345
 
Join Date: Jan 2012
Location: CARSON
Posts: 12
ww2freak8 is an unknown quantity at this point
Re: Programming a compressor

oh yes, i noticed that. that wasw because i was testing something eright before i posted that, but that isnt the problem
Reply With Quote
  #11   Spotlight this post!  
Unread 17-02-2013, 18:10
ww2freak8 ww2freak8 is offline
Registered User
FRC #4345
 
Join Date: Jan 2012
Location: CARSON
Posts: 12
ww2freak8 is an unknown quantity at this point
Re: Programming a compressor

wish i knew why it wont work =(
Reply With Quote
  #12   Spotlight this post!  
Unread 17-02-2013, 18:13
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Programming a compressor

Are you sure everything is wired correctly? Can you take a multimeter and see if the spike is sending voltage to the compressor? What colour is the LED on the spike? What is the pressure switch saying (can also be checked with a multimeter)?
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #13   Spotlight this post!  
Unread 17-02-2013, 18:21
ww2freak8 ww2freak8 is offline
Registered User
FRC #4345
 
Join Date: Jan 2012
Location: CARSON
Posts: 12
ww2freak8 is an unknown quantity at this point
Re: Programming a compressor

Quote:
Originally Posted by plnyyanks View Post
Are you sure everything is wired correctly? Can you take a multimeter and see if the spike is sending voltage to the compressor? What colour is the LED on the spike? What is the pressure switch saying (can also be checked with a multimeter)?
it looks like we are getting up to 7 volts off the spike relay, and the little light on it is orange, didnt know the pressure switch says anything
Reply With Quote
  #14   Spotlight this post!  
Unread 17-02-2013, 18:39
ww2freak8 ww2freak8 is offline
Registered User
FRC #4345
 
Join Date: Jan 2012
Location: CARSON
Posts: 12
ww2freak8 is an unknown quantity at this point
Re: Programming a compressor

also it connected to a spike relay but idk if thats what causing the issue.. just know its still not working
Reply With Quote
  #15   Spotlight this post!  
Unread 17-02-2013, 19:26
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Programming a compressor

Quote:
Originally Posted by ww2freak8 View Post
it looks like we are getting up to 7 volts off the spike relay
That doesn't sound right. You should be getting +12, -12, or 0. Check the input wiring - it should go a terminal on the PDB protected by a 20 amp breaker.

Quote:
Originally Posted by ww2freak8 View Post
and the little light on it is orange
If it's solid orange, that means it's outputting neutral (zero volts). If it's trying to get your compressor to run, it'll turn green (forward). There should be a PWM wire between the spike and Relay port 3 on your digital sidecar (like you specified in code)

Quote:
Originally Posted by ww2freak8 View Post
didnt know the pressure switch says anything
When the pressure going through the pressure switch is <120 psi, there will be an open circuit between the two wires coming off it (which should go to DIO 14, like you specified in code). That circuit will close when the pressure reaches 120 psi. This tells the cRIO to turn off the compressor.

Take a look at the Signal Wiring Diagram and the Power Wiring Diagram to see how to wire the pressure switch and a spike relay.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android

Last edited by plnyyanks : 17-02-2013 at 19:31.
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 22:58.

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