Go to Post Robotics is really preparing us for jobs at NASA. Look. We're past deadline, overweight, overbudget, and our project doesn't even work! - Oblarg [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 07-02-2015, 15:11
DBaleta DBaleta is offline
Registered User
FRC #2001
 
Join Date: Feb 2015
Location: Missouri
Posts: 15
DBaleta is an unknown quantity at this point
Compressor

Do we need to program the compressor in Labview? Is the compressor already programmed into the coding of the double solenoids?
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2015, 15:14
Ben Wolsieffer Ben Wolsieffer is online now
Dartmouth 2020
AKA: lopsided98
FRC #2084 (Robots by the C)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Manchester, MA (Hanover, NH)
Posts: 520
Ben Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud ofBen Wolsieffer has much to be proud of
Re: Compressor

When you open a solenoid, the compressor start running (and stops when it fills the tanks) automatically.
__________________



2016 North Shore District - Semifinalists and Excellence in Engineering Award
2015 Northeastern University District - Semifinalists and Creativity Award
2014 Granite State District - Semifinalists and Innovation in Control Award
2012 Boston Regional - Finalists
Reply With Quote
  #3   Spotlight this post!  
Unread 07-02-2015, 15:36
DBaleta DBaleta is offline
Registered User
FRC #2001
 
Join Date: Feb 2015
Location: Missouri
Posts: 15
DBaleta is an unknown quantity at this point
Re: Compressor

Quote:
Originally Posted by lopsided98 View Post
When you open a solenoid, the compressor start running (and stops when it fills the tanks) automatically.
So all i need to do is program the solenoid in the Begin vi, Telop vi, and the Finish vi, and when I do this the compressor will automatically turn on and stop without manually programming it to do so?
Reply With Quote
  #4   Spotlight this post!  
Unread 07-02-2015, 16:12
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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

Yes, just so.

If you want to see how it's done, double-click on the Solenoid Open and looking at the block diagram you'll see the compressor Open.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 07-02-2015, 16:19
DBaleta DBaleta is offline
Registered User
FRC #2001
 
Join Date: Feb 2015
Location: Missouri
Posts: 15
DBaleta is an unknown quantity at this point
Re: Compressor

We've added 2 double solenoids to our program and the compressor does not start. we added the compressor to the Begin vi and tested it and still no compressor. Attached is a copy of our coding in Begin and Telop that pertains to the compressor.
Attached Thumbnails
Click image for larger version

Name:	SW AM Begin.png
Views:	52
Size:	9.8 KB
ID:	18191  Click image for larger version

Name:	SW AM Telop.png
Views:	47
Size:	10.3 KB
ID:	18192  
Reply With Quote
  #6   Spotlight this post!  
Unread 07-02-2015, 16:26
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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

The enums in Teleop are incorrect for Relay. That's why they have red dots.
Get a correct Relay Enum by
  • Deleting the wire into Relay (the one with the red dot)
  • Right-click on the now vacant Relay input node and choose Create->Constant
That's the correct Relay enum type.
  • Now make copies of the correct one and replace all the others
  • Finally, remove the Enum you created into Relay and wire Relay into the Select as it was before.
  • If done correctly all the red dots should be gone.

Separately, is the status light on the Pneumatics Control Module blinking green?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 07-02-2015, 18:51
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: Compressor

Why does one of your double solenoids have a 0 wired to it, and the other a 1?
Reply With Quote
  #8   Spotlight this post!  
Unread 09-02-2015, 17:40
DBaleta DBaleta is offline
Registered User
FRC #2001
 
Join Date: Feb 2015
Location: Missouri
Posts: 15
DBaleta is an unknown quantity at this point
Re: Compressor

Quote:
Originally Posted by Mark McLeod View Post
The enums in Teleop are incorrect for Relay. That's why they have red dots.
Get a correct Relay Enum by
  • Deleting the wire into Relay (the one with the red dot)
  • Right-click on the now vacant Relay input node and choose Create->Constant
That's the correct Relay enum type.
  • Now make copies of the correct one and replace all the others
  • Finally, remove the Enum you created into Relay and wire Relay into the Select as it was before.
  • If done correctly all the red dots should be gone.

Separately, is the status light on the Pneumatics Control Module blinking green?
Okay I changed the program in telop. is there anything else I need to change? Like in the Begin vi?
Reply With Quote
  #9   Spotlight this post!  
Unread 09-02-2015, 17:42
DBaleta DBaleta is offline
Registered User
FRC #2001
 
Join Date: Feb 2015
Location: Missouri
Posts: 15
DBaleta is an unknown quantity at this point
Re: Compressor

Quote:
Originally Posted by Alan Anderson View Post
Why does one of your double solenoids have a 0 wired to it, and the other a 1?
In the begin vi the 0 and 1 corresponds with the channel in the Pneumatic Control Module that the double solenoids are using. Or at least that's what I think.

Last edited by DBaleta : 09-02-2015 at 18:05.
Reply With Quote
  #10   Spotlight this post!  
Unread 09-02-2015, 18:28
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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

Solenoid B in Begin.vi needs the "1" changed to a "0"

To check that the PCM is setup correctly, use a web browser and type into the address bar:
roboRIO-2001.local
That should bring up web page where you'll see PCM listed on the left side.
Click on PCM and verify that the CAN ID = 0

What are the status lights on the PCM doing?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #11   Spotlight this post!  
Unread 09-02-2015, 18:56
DBaleta DBaleta is offline
Registered User
FRC #2001
 
Join Date: Feb 2015
Location: Missouri
Posts: 15
DBaleta is an unknown quantity at this point
Re: Compressor

Quote:
Originally Posted by Mark McLeod View Post
Solenoid B in Begin.vi needs the "1" changed to a "0"

To check that the PCM is setup correctly, use a web browser and type into the address bar:
roboRIO-2001.local
That should bring up web page where you'll see PCM listed on the left side.
Click on PCM and verify that the CAN ID = 0

What are the status lights on the PCM doing?
I changed Solenoid B to "0" and i can't find the pcm in the web browser. The status light on the PCM is blinking slow red. (No Can Com?)
Reply With Quote
  #12   Spotlight this post!  
Unread 09-02-2015, 19:06
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: Compressor

Quote:
Originally Posted by DBaleta View Post
In the begin vi the 0 and 1 corresponds with the channel in the Pneumatic Control Module that the double solenoids are using. Or at least that's what I think.
That number corresponds to the CAN ID of the PCM itself. It defaults to zero, and should remain zero unless you're adding a second PCM to the system.

The enumerated "Solenoid 0", "Solenoid 1", etc. define which outputs of the PCM are connected to the solenoids.

If your PCM is blinking red, then you need to look at your CAN wiring and make sure it is correct. The yellow/green CAN terminals on the roboRIO should be wired to one pair of terminals on the PCM, and the other pair of PCM terminals should be wired to the CAN terminals on the Power Distribution Panel.
Reply With Quote
  #13   Spotlight this post!  
Unread 09-02-2015, 19:19
DBaleta DBaleta is offline
Registered User
FRC #2001
 
Join Date: Feb 2015
Location: Missouri
Posts: 15
DBaleta is an unknown quantity at this point
Re: Compressor

Quote:
Originally Posted by Alan Anderson View Post
That number corresponds to the CAN ID of the PCM itself. It defaults to zero, and should remain zero unless you're adding a second PCM to the system.

The enumerated "Solenoid 0", "Solenoid 1", etc. define which outputs of the PCM are connected to the solenoids.

If your PCM is blinking red, then you need to look at your CAN wiring and make sure it is correct. The yellow/green CAN terminals on the roboRIO should be wired to one pair of terminals on the PCM, and the other pair of PCM terminals should be wired to the CAN terminals on the Power Distribution Panel.
We rewired our CAN wires (They were wired incorrectly). Now the PCM is blinking green. We have yet to test the program though.
Reply With Quote
  #14   Spotlight this post!  
Unread 09-02-2015, 19:38
DBaleta DBaleta is offline
Registered User
FRC #2001
 
Join Date: Feb 2015
Location: Missouri
Posts: 15
DBaleta is an unknown quantity at this point
Re: Compressor

We ran into a problem where the buttons do not retract the pistons. Did i program the buttons wrong?

Last edited by DBaleta : 09-02-2015 at 19:41.
Reply With Quote
  #15   Spotlight this post!  
Unread 09-02-2015, 19:55
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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

If some of the LEDs next to the solenoid ports 0, 1, 2, 3 light but do not change, then there is still something wrong with the code.
Want to post the latest?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 21:26.

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