|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools |
Rating:
|
Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
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? |
|
#2
|
||||
|
||||
|
Re: Compressor Control Loop: Relay Index is Invalid; also, Robot Drive not Running fa
Quote:
Quote:
Anyway, we're using this code right now, which works perfectly. Begin.vi Periodic Task.vi Finish.vi 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. Last edited by RyanN : 12-02-2012 at 16:55. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||||
|
|||||
|
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. Last edited by Mark McLeod : 12-02-2012 at 17:23. |
|
#5
|
|||||
|
|||||
|
Re: Compressor Control Loop: Relay Index is Invalid; also, Robot Drive not Running fa
Quote:
Quote:
|
|
#6
|
|||
|
|||
|
Re: Compressor Control Loop: Relay Index is Invalid; also, Robot Drive not Running fa
Quote:
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|