Go to Post your sense of humor - don't leave home without it. - JaneYoung [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: 11 votes, 4.64 average. Display Modes
  #1   Spotlight this post!  
Unread 12-02-2012, 15:59
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 Control Loop: Relay Index is Invalid; also, Robot Drive not Running fa

That looks correct, and it's worked for me when I've used it.
Your Driver Station reports the cRIO image version to be v43?
No conflicts for DIO 1 or Relay 1?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2012, 16:45
RyanN's Avatar
RyanN RyanN is offline
RyanN
AKA: Ryan Nazaretian
FRC #4901 (Garnet Squadron)
Team Role: Mentor
 
Join Date: Jun 2006
Rookie Year: 2005
Location: Columbia, SC
Posts: 1,126
RyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond reputeRyanN has a reputation beyond repute
Re: Compressor Control Loop: Relay Index is Invalid; also, Robot Drive not Running fa

Quote:
Originally Posted by Mark McLeod View Post
That looks correct, and it's worked for me when I've used it.
Your Driver Station reports the cRIO image version to be v43?
No conflicts for DIO 1 or Relay 1?
It was the newest version, not sure which. It was last weekend when we messed with it. I setup the cRIO for them using the latest software though.

Quote:
Originally Posted by Alan Anderson View Post
Team 1410 apparently fixed their "relay index is invalid" problem by using a good 37-pin cable between the cRIO digital module and the Digital Sidecar. I don't know why that would make a difference, unless the faulty cable was somehow keeping the module from working.
We did have one of the bad cables, and the electrical guy tried to fix it, but ended up breaking one of the clips that holds the connector together. We're using one of the old ones from last year now, so no worries there.

Anyway, we're using this code right now, which works perfectly.

Begin.vi
Click image for larger version

Name:	New Begin.vi.png
Views:	290
Size:	7.1 KB
ID:	11872

Periodic Task.vi
Click image for larger version

Name:	New Periodic Tasks.vi.png
Views:	285
Size:	8.7 KB
ID:	11873

Finish.vi
Click image for larger version

Name:	New Finish.vi.png
Views:	207
Size:	3.1 KB
ID:	11874

I'm assuming this is legal for use in competition as long as we can demonstrate that the compressor shuts off at ~120PSI, and we have the pressure relief valve installed. I'm not going to lie. I skimmed the rules when they first came out. Being a college mentor is hard. I dedicate what time I have to help out the teams I mentor. I don't remember any of the rules saying you have to use their compressor code, but I'm not 100% sure.
__________________
Garnet Squadron
FRC 4901
Controls Mentor
@rnazaretian

Previous mentor and student from Team Fusion, FRC 364

Last edited by RyanN : 12-02-2012 at 16:55.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2012, 16:47
Bill McKinney Bill McKinney is offline
Registered User
no team
Team Role: Coach
 
Join Date: Nov 2010
Rookie Year: 2010
Location: Trout Lake, WA
Posts: 8
Bill McKinney is an unknown quantity at this point
Re: Compressor Control Loop: Relay Index is Invalid; also, Robot Drive not Running fa

Team 3711 has just run into the same message . Our code looks exactly like that shown above for all three vi's. And we're getting the invalid relay index message (and "invalid" indications in the control loop vi front panel)
Modules are set to the default of 1. Both the pressure switch and spike PWM are in the number 1 slots. We've replaced PWM cable and spikes. The spike gets a continuous orange(ish) light and receives no signal.
If someone does have a workaround we'd love to see it since we're testing pneumatics on the robot using a manual switch at the moment.
Thanks very much.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2012, 17:13
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 Control Loop: Relay Index is Invalid; also, Robot Drive not Running fa

Use your code that works.
There's nothing sacred about the custom vi. It's just easier to work with common code if we're helping someone.
It adds some extra complexity in it's design to handle multiple compressors, but serves as an interesting example of doing that.

It's time for a little library decomposition to see where the sensitivities may lie.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 12-02-2012 at 17:23.
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2012, 19:53
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 Control Loop: Relay Index is Invalid; also, Robot Drive not Running fa

Quote:
Originally Posted by Bill McKinney View Post
Team 3711 has just run into the same message . Our code looks exactly like that shown above for all three vi's. And we're getting the invalid relay index message (and "invalid" indications in the control loop vi front panel)
Modules are set to the default of 1.
Is a puzzlement. Can you post your code so we can go through it in detail, looking for anything that isn't quite right?

Quote:
Both the pressure switch and spike PWM are in the number 1 slots.
I think you're talking about the 3-pin connections on the Digital Sidecar, but in case you're talking about the cRIO module, that needs to be in the number 2 slot.
Reply With Quote
  #6   Spotlight this post!  
Unread 13-02-2012, 16:10
Bill McKinney Bill McKinney is offline
Registered User
no team
Team Role: Coach
 
Join Date: Nov 2010
Rookie Year: 2010
Location: Trout Lake, WA
Posts: 8
Bill McKinney is an unknown quantity at this point
Re: Compressor Control Loop: Relay Index is Invalid; also, Robot Drive not Running fa

Quote:
Originally Posted by Alan Anderson View Post
Is a puzzlement. Can you post your code so we can go through it in detail, looking for anything that isn't quite right?



I think you're talking about the 3-pin connections on the Digital Sidecar, but in case you're talking about the cRIO module, that needs to be in the number 2 slot.
Thanks again for your help on this. Yep, the slots referred to were in the sidecar. We have now created a new compressor while loop in the periodic tasks VI per the code given earlier in this thread and everything is working fine. All wiring (PWM and pressure switch) remains the same so it was certainly (if there is such a thing) an issue with code in the compressor loop VI.
Incidentally, I won't add our original non-working code here since it was an exact dupe of the suggested code from this thread.
Of course it's crunch time and there are more probs, but this will be interesting to think more about in a couple of weeks!
Thanks.
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 11:41.

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