Go to Post It's always better to figure out why a design actually works and the best ways to implement it than to just assume upgrading to a "better" material will make everything work. - 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 13-02-2012, 21:04
stintzi stintzi is offline
Registered User
FRC #3290
 
Join Date: Jan 2012
Location: canada
Posts: 13
stintzi is an unknown quantity at this point
Window motor moves only one way

I have hooked up a spike relay to a window motor. The spike relay is set up right electrically. In begin.vi I have set up an OPEN with a BOTH DIRECTIONS hooked up with the proper relay number.

In teleop I cannot get it to move the other way. I have included my teleop. I have tried changing buttons, changing which ones are FORWARD REVERSE and ON in my trying. I even tried typing in code that was identical to the robot last year that had the same window motor moving both ways. All with no luck.
Attached Files
File Type: vi Teleop.vi (37.9 KB, 20 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2012, 21:15
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,713
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: Window motor moves only one way

You can give the Relay conflicting demands.
You tell it to go Forward and Reverse at the same time.
Maybe do something like the attached to avoid that issue.

You also created your input values incorrectly.
That's what the red dot means.
Delete one and replace it by positioning the cursor over the input node, right-click and choose Create -> Constant.
You'll get the same (looking) thing without the red dot. The problem that red dot introduces is that the enumerated word may not always mean what you think it should mean.

What colors do the Relay LEDs turn for Forward/Reverse/Off?
Attached Thumbnails
Click image for larger version

Name:	CascadeRelay.png
Views:	52
Size:	15.6 KB
ID:	11890  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 13-02-2012 at 21:57.
Reply With Quote
  #3   Spotlight this post!  
Unread 15-02-2012, 18:09
stintzi stintzi is offline
Registered User
FRC #3290
 
Join Date: Jan 2012
Location: canada
Posts: 13
stintzi is an unknown quantity at this point
Re: Window motor moves only one way

I got rid of all the dots and it still didn't work. It turns out that it was a faulty PWM cord that would only send the reverse and not forward. (One of those brand new orange PWMs too. Go figure.)

Last edited by stintzi : 15-02-2012 at 18:46.
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 08:43.

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