Go to Post Smart defense doesn't even require your robot to push another. - Cory [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 11-02-2012, 01:13
xisybyl xisybyl is offline
Registered User
FRC #3648
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Denver
Posts: 34
xisybyl is an unknown quantity at this point
Cannot get Spike Relay example to work

This started as a "compressor won't work" issue but after trying to simplify, we found the issue to be with the Spike relay alone.

We are now using the Spike Relay example (as supplied except for IP address) and find that no matter what we do on the VI the relay LED does not change from Red no matter what. We are seeing some errors thrown up, such as "Relay index is invalid", I/O unit not detected or installed incorrectly" ,

We have tried more than one Spike, I/O module and cable, and the cRIO image display shows the module installation is OK (shows green). We have checked input voltage. Needless to say the Compressor example doesn't work either.

The robot drive motors (PWM) DO work. The example is the only one loaded.

Can anyone help?
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2012, 01:41
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: Cannot get Spike Relay example to work

The "I/O unit" error is expected. It's just telling you the Driver Station didn't find a Cypress PsoC board connected.

How exactly do you have the Spike wired?
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2012, 11:23
xisybyl xisybyl is offline
Registered User
FRC #3648
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Denver
Posts: 34
xisybyl is an unknown quantity at this point
Re: Cannot get Spike Relay example to work

12 v to input (12v & G), Motor on M+ & M-, 3 wire (pwm type) cable from Relay 1 on sidecar to Spike as shown in example front Panel. Errors shown on driver station are very similar to those shown in thread
http://www.chiefdelphi.com/forums/sh...x+is+i nvalid

Why is it looking for a Cypress board in LabVIEW application?
What is "Relay Index is Invalid" telling us?
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2012, 18:22
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: Cannot get Spike Relay example to work

Quote:
Originally Posted by xisybyl View Post
Why is it looking for a Cypress board in LabVIEW application?
What is "Relay Index is Invalid" telling us?
The Driver Station program always looks for the Cypress board.

The invalid relay index is a stumper. What is your Robot Signal Light doing? Is there a Digital I/O module installed in slot 2 of the cRIO as required?
Reply With Quote
  #5   Spotlight this post!  
Unread 11-02-2012, 22:06
xisybyl xisybyl is offline
Registered User
FRC #3648
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Denver
Posts: 34
xisybyl is an unknown quantity at this point
Re: Cannot get Spike Relay example to work

Thanks, Alan for your reply and help. We are up now, but thought I'd close the loop.

It turned out we had two issues going on. The first was a "bad" cable btwn sidecar and cRIO module. Our repaired (due to mfg. defect) ribbon cable was not reliable. Very difficult to make a ribbon connector that large without proper tooling (a vise doesn't quite cut it). To make matters worse, neither of two round cables from previous years worked. (One of our mentors is having them checked at her company so we can understand why - do you?). The ultimate solution was to locate a completely new ribbon cable and use that. (This has been a solution to accelerometer issues elsewhere in Chief Delphi).

Second was getting the compressor and robot drive BOTH functioning. I ran a direct compressor reference wire from the begin VI to the Periodic (Timed Tasks) VI and located the compressor control VI there. (Later I discovered it was there already but was disabled.) Thanks for your comments on that. It took awhile for the solution to become clear.

As a final note, given that the compressor integration from example into the robot project was significantly different than most other examples I think it would help others if FRC added a note of clarification to the pneumatic examples.
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:07.

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