Go to Post We also indirectly benefit from those rookie teams having well-built and working drivebases. It helps raise the level of performance across the board, making for a better competitive environment. - Alan Anderson [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 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,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: 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
  #2   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
  #3   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
  #4   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,795
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
  #5   Spotlight this post!  
Unread 09-02-2015, 20:05
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
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?
There are no LEDs next to the solenoid ports as far as I can tell.
Attached Thumbnails
Click image for larger version

Name:	SW AM Begin 2.png
Views:	14
Size:	7.9 KB
ID:	18249  Click image for larger version

Name:	SW AM Telop 2.png
Views:	10
Size:	9.1 KB
ID:	18250  
Reply With Quote
  #6   Spotlight this post!  
Unread 09-02-2015, 20:11
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,795
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 PCM solenoid LEDs are easy to miss if they are off, and hard to miss if they are on. Here is what they look like:


If none of the LEDs are on then your commands are not getting to the PCM (or it's Disabled).
Did you go back with a web browser and confirm the CAN ID used by the PCM =0?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 09-02-2015, 20:20
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 PCM solenoid LEDs are easy to miss if they are off, and hard to miss if they are on. Here is what they look like:


If none of the LEDs are on then your commands are not getting to the PCM (or it's Disabled).
Did you go back with a web browser and confirm the CAN ID used by the PCM =0?
The CAN ID is 0 and none of the LEDs are on. The Light Device LED box is unchecked. Could that be why?

Is there an example of how to program the buttons in Labview that I could see?
Reply With Quote
  #8   Spotlight this post!  
Unread 09-02-2015, 20:25
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,795
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

There are some examples here.

The Light Device LED is just a way to make the PCM flash so you can confirm which one it is if you have multiple PCMs.
You can test it by checking it then clicking Save. The PCM will immediately blink rapidly for a second or two.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 09-02-2015 at 20:31.
Reply With Quote
  #9   Spotlight this post!  
Unread 10-02-2015, 15:57
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
There are some examples here.

The Light Device LED is just a way to make the PCM flash so you can confirm which one it is if you have multiple PCMs.
You can test it by checking it then clicking Save. The PCM will immediately blink rapidly for a second or two.
We reworked the programming and some LEDs do turn on. However only Solenoid B seems to work. Solenoid A automatically expands the piston and refuses to retract. Solenoid B (used for our noodle system) extends and retracts the piston correctly yet Solenoid A (used for our lift system) extends the piston without the pressing a button and refuses to retract.
Reply With Quote
  #10   Spotlight this post!  
Unread 10-02-2015, 16: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: Compressor

Your Teleop code doesn't show where the Buttons array is coming from. It almost looks like there are two different arrays coming in from the top left, each being converted for some reason to a cluster, then a member of each cluster is being chosen independently to select the solenoid state.

Give us some more context so we can see what you're trying to control the solenoids with.
Reply With Quote
  #11   Spotlight this post!  
Unread 10-02-2015, 17:57
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
Your Teleop code doesn't show where the Buttons array is coming from. It almost looks like there are two different arrays coming in from the top left, each being converted for some reason to a cluster, then a member of each cluster is being chosen independently to select the solenoid state.

Give us some more context so we can see what you're trying to control the solenoids with.
The reason why we converted them to a cluster was because that was what we were used to the previous years. We changed them back into arrays.

Noodle Solenoid works (Previously labeled Solenoid B). Lift Solenoid doesn't (Previously labeled Solenoid A).
Attached Thumbnails
Click image for larger version

Name:	Telop 2-10-15.png
Views:	7
Size:	19.6 KB
ID:	18264  

Last edited by DBaleta : 10-02-2015 at 18:01.
Reply With Quote
  #12   Spotlight this post!  
Unread 10-02-2015, 19:44
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 sorted everything out and now everything runs. Our team wants to reprogram the solenoids so that the pistons stop expanding or retracting once the button is let go. As of right now if you push a button, the piston will either fully extend or fully retract. No in between.
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 10: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