Go to Post Wow I am old. How did that happen? - Paul Copioli [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 05-02-2013, 23:00
Coin3's Avatar
Coin3 Coin3 is offline
Registered User
AKA: Griffin Cerva
FRC #4110 (Deep Space Niners)
Team Role: Leadership
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Brookings, OR
Posts: 47
Coin3 is an unknown quantity at this point
Compressor wont work with pressure switch

We at team 4110 have been having problems with our compressor & pressure switch. We have tested that the compressor works on its own with a button on the controller controlling it. We also have tested the pressure switch and it switched at 120. But we have yet to get the compressor and pressure switch to work together.
Attached Thumbnails
Click image for larger version

Name:	CodeSample.png
Views:	43
Size:	1.6 KB
ID:	13828  
Reply With Quote
  #2   Spotlight this post!  
Unread 05-02-2013, 23:11
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Compressor wont work with pressure switch

That's the Periodic Tasks.vi part of the necessary code.

Now show us the Begin.vi part of your code.
That's the part that tells the robot where everything should be connected. The compressor control output and the pressure switch sensor input to tell us when more pressure is needed and when we have enough pressure.

It should look like this:
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 05-02-2013 at 23:14.
Reply With Quote
  #3   Spotlight this post!  
Unread 06-02-2013, 00:26
Mr.circlemonger Mr.circlemonger is offline
Registered User
FRC #4110
 
Join Date: Feb 2013
Location: United States
Posts: 6
Mr.circlemonger is an unknown quantity at this point
Re: Compressor wont work with pressure switch

Hi, So we actually have exactly what you have posted with the begin.vi and also have it close in the finish.vi i have searched a lot on the forums here and have seen that exact code but it hasn't worked for us yet.
Reply With Quote
  #4   Spotlight this post!  
Unread 06-02-2013, 00:56
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: Compressor wont work with pressure switch

How do you have your pressure switch wired? Is it with the ground and signal wires? Does it plug into the first DIO slot on the Digital Sidecar?
__________________
I'm right 90% of the time, so why worry about the other 3%?
Reply With Quote
  #5   Spotlight this post!  
Unread 06-02-2013, 08:55
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Compressor wont work with pressure switch

You said that you have a controller button able to run the compressor.
Was that done by moving the compressor to a different Relay output on the Digital sidecar? I only ask because you could break the compressor code if you try to access the same Relay it is using.


I'd suggest testing your wiring setup by running the example compressor code provided under the pneumatics folder for Solenoid With Compressor.lvproj in:
Getting Started -> Support -> Find FRC Examples...
That'll isolate the problem to being code vs hardware.

Open up the front panel of that example to see a demonstration of the proper wiring.
It can be executed using the Run button in the upper left of the window.
You do have to set the IP to match your team. Do that by right-clicking on RT CompactRIO Target (10.0.0.2), choosing Properties and setting the IP to 10.41.10.2
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #6   Spotlight this post!  
Unread 06-02-2013, 12:04
Mr.circlemonger Mr.circlemonger is offline
Registered User
FRC #4110
 
Join Date: Feb 2013
Location: United States
Posts: 6
Mr.circlemonger is an unknown quantity at this point
Re: Compressor wont work with pressure switch

We have now wired the pressure switch and compressor exactly as shown in the special compressor code but still nothing. We have also tried the special compressor code and the lights in the program lit up saying the compressor was running but it still wasn't running.
Reply With Quote
  #7   Spotlight this post!  
Unread 06-02-2013, 12:10
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Compressor wont work with pressure switch

It would seem to be a wiring problem if you are running the example code.

When the example code is running (and Robot is Enabled by the Driver Station) the Digital Sidecar status indicator in the slot in front of Relay 1 should turn green.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #8   Spotlight this post!  
Unread 06-02-2013, 14:29
Coin3's Avatar
Coin3 Coin3 is offline
Registered User
AKA: Griffin Cerva
FRC #4110 (Deep Space Niners)
Team Role: Leadership
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Brookings, OR
Posts: 47
Coin3 is an unknown quantity at this point
Re: Compressor wont work with pressure switch

We tested the example code once more, and it does indeed work. We did not know that you still had to enable the program from the driver station when running it from the vi's run button.

Thank you!
-Team 4110
Reply With Quote
  #9   Spotlight this post!  
Unread 06-02-2013, 14:50
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Compressor wont work with pressure switch

It's the little things that bite you.
Good luck!
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #10   Spotlight this post!  
Unread 06-02-2013, 16:23
Mr.circlemonger Mr.circlemonger is offline
Registered User
FRC #4110
 
Join Date: Feb 2013
Location: United States
Posts: 6
Mr.circlemonger is an unknown quantity at this point
Re: Compressor wont work with pressure switch

We got our actual program to work finally. I had to look our program a couple times though. I realized that I didn't spell the reference name right. Thanks for all the help.
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:51.

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