Go to Post work? I can't remember when the last time i did that was... - Carolyn Duncan [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2011, 08:29
AnimeOtako's Avatar
AnimeOtako AnimeOtako is offline
Registered User
FRC #3475
 
Join Date: Feb 2011
Location: Charleston,south Carolina
Posts: 7
AnimeOtako is an unknown quantity at this point
Exclamation How do we get the spike in both directions in labview?

Yeah,we are from team 3475,we're also rookies and we have no idea how to make the spike relay go in both directions. Well what I mean is that when we program it to go one direction it doesn't go in the other, all we are getting are jolts from the window motors we are using.

Please if there is any one that can help please reply, we are in desperate need.

Sincerely team 3475 programmer,
Takeshita Green
  #2   Spotlight this post!  
Unread 17-02-2011, 08:35
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,856
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: How do we get the spike in both directions in labview?

Assuming you are talking about running the motor off a Spike relay.

Use the Relay Set enumerated input:
  • Forward - one direction
  • Reverse - the opposite direction
  • Off - stop moving
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 17-02-2011 at 08:38.
  #3   Spotlight this post!  
Unread 17-02-2011, 09:33
AnimeOtako's Avatar
AnimeOtako AnimeOtako is offline
Registered User
FRC #3475
 
Join Date: Feb 2011
Location: Charleston,south Carolina
Posts: 7
AnimeOtako is an unknown quantity at this point
Re: How do we get the spike in both directions in labview?

Yes we have already done that and the problem still continues. We have checked our teleop vi many times and have tried different things to get both reverse and forward reactions,but it still continues to go in one direction.
Could the problem be a default setting somewhere in the programming?
  #4   Spotlight this post!  
Unread 17-02-2011, 10:19
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,856
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: How do we get the spike in both directions in labview?

It's easy to tell if it's programming vs electrical in nature.
There are Relay status LEDs (a red/green for each Relay) on the Digital Sidecar that tell you exactly what the code is commanding.
It doesn't matter if the Spike is attached or not.


If your code is working correctly to command Forward and Reverse, then the Relay LED for the proper Relay will show:
  • Off = both LEDs off (dark)
  • On = both LEDs on (red & green), not used for motors
  • Forward = green LED lit
  • Reverse = red LED lit
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 17-02-2011, 10:23
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: How do we get the spike in both directions in labview?

Quote:
Originally Posted by AnimeOtako View Post
Yes we have already done that and the problem still continues. We have checked our teleop vi many times and have tried different things to get both reverse and forward reactions,but it still continues to go in one direction.
Could the problem be a default setting somewhere in the programming?
If you have isolated it to a programming issue can you post your code?
__________________
  #6   Spotlight this post!  
Unread 17-02-2011, 14:22
AnimeOtako's Avatar
AnimeOtako AnimeOtako is offline
Registered User
FRC #3475
 
Join Date: Feb 2011
Location: Charleston,south Carolina
Posts: 7
AnimeOtako is an unknown quantity at this point
Re: How do we get the spike in both directions in labview?

Yes I am aware about the led light signals on the digital sidecar but even so when one light is constant the other one flickers on and off constantly and will every once in a while the motor will react in reverse.
  #7   Spotlight this post!  
Unread 17-02-2011, 14:26
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: How do we get the spike in both directions in labview?

Quote:
Originally Posted by AnimeOtako View Post
...when one light is constant the other one flickers on and off constantly and will every once in a while the motor will react in reverse.
That sounds very much like your programming is trying to do two contradictory things at the same time. It's time for you to show us your code so we can point out where it can be improved.
  #8   Spotlight this post!  
Unread 17-02-2011, 18:19
AnimeOtako's Avatar
AnimeOtako AnimeOtako is offline
Registered User
FRC #3475
 
Join Date: Feb 2011
Location: Charleston,south Carolina
Posts: 7
AnimeOtako is an unknown quantity at this point
Re: How do we get the spike in both directions in labview?

Yes I am aware about the led light signals on the digital sidecar but even so when one light is constant the other one flickers on and off constantly and will every once in a while the motor will react in reverse.
  #9   Spotlight this post!  
Unread 17-02-2011, 21:12
AnimeOtako's Avatar
AnimeOtako AnimeOtako is offline
Registered User
FRC #3475
 
Join Date: Feb 2011
Location: Charleston,south Carolina
Posts: 7
AnimeOtako is an unknown quantity at this point
Re: How do we get the spike in both directions in labview?

[IMG]http:/team358.org/files/.../Pneumatics-StepByStep-cRIOversion.doc[/IMG]Yeah here are three images of our Begin, Teleop, Finish VIs

Last edited by AnimeOtako : 17-02-2011 at 21:23. Reason: no image
  #10   Spotlight this post!  
Unread 17-02-2011, 21:47
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,856
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: How do we get the spike in both directions in labview?

That example is for a pneumatic single solenoid connected via a Relay, not for a motor.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #11   Spotlight this post!  
Unread 18-02-2011, 05:42
AnimeOtako's Avatar
AnimeOtako AnimeOtako is offline
Registered User
FRC #3475
 
Join Date: Feb 2011
Location: Charleston,south Carolina
Posts: 7
AnimeOtako is an unknown quantity at this point
Re: How do we get the spike in both directions in labview?

Then how would we do it for a motor because I don't have anything else to base the programing off of.
  #12   Spotlight this post!  
Unread 18-02-2011, 06:45
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: How do we get the spike in both directions in labview?

Look at Team 358's page for helpful examples: http://team358.org/files/programming...2009-/LabVIEW/
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
  #13   Spotlight this post!  
Unread 18-02-2011, 07:20
Daiane's Avatar
Daiane Daiane is offline
Registered User
AKA: Daiane Rodrigues
FRC #1772 (Heitortec Trail Blazers)
Team Role: Coach
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Brazil
Posts: 26
Daiane will become famous soon enoughDaiane will become famous soon enough
Send a message via MSN to Daiane
Re: How do we get the spike in both directions in labview?

Hi,

I'm with problems in my labview program.

The tank drive and the compressor run normally, but the relay and the solenoid is not running.

Can you help me, part of my program is below.
Attached Thumbnails
Click image for larger version

Name:	begin.JPG
Views:	22
Size:	28.9 KB
ID:	10194  Click image for larger version

Name:	teleop.JPG
Views:	26
Size:	42.4 KB
ID:	10195  Click image for larger version

Name:	finish.JPG
Views:	17
Size:	24.9 KB
ID:	10196  
__________________
#1772
  #14   Spotlight this post!  
Unread 18-02-2011, 08:24
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: How do we get the spike in both directions in labview?

In Teleop, you have spelled the ref nums for the solenoids differently (first letter not capitalized).
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
  #15   Spotlight this post!  
Unread 18-02-2011, 08:34
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: How do we get the spike in both directions in labview?

Also,
-The Compressor requires a Digital Input for the Pressure Switch.
-The Set Relay for "braco" requires an enumerated constant, not a number. Enumerated constants evaluate to numbers but this is bad practice. This is why you see the red dot on the Set Relay, the .vi is basically doing implicit datatyping, i.e. it sees a datatype it doesn't expect but it can deal with it.
-I don't know what the purpose of your solenoids is, but if these go to a single double-acting solenoid then you have the possibility of both being turned on at the same time, which is probably not what you want. Instead, you could put both Solenoid Sets in your case statement.
__________________
Closed Thread


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 23:35.

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