Go to Post "It's not a bug, it's an unlisted feature." - Barry Craig [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 28-01-2010, 13:41
Damiles Damiles is offline
Registered User
FRC #3389
 
Join Date: Jan 2010
Location: Maryland
Posts: 6
Damiles is an unknown quantity at this point
Exclamation Programming 24v relay

Hi we are a rookie team and we are just overwhelmed by labview and almost everything and we need help programming 24v DO relay on the CRIO with our joystick buttons. Can someone help us out or maybe point us in the right direction.

Thank you
Team 3389
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2010, 13:55
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: Programming 24v relay

From the LabView Getting Started screen...look in the Examples section for a solenoid example. Remember, to use the 24v Festo you will have to use a Solenoid module in slot 7 or 8 and connect the power connector to the 24 v supply on the Power Distribution Board. You cannot use a Relay!
__________________
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
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2010, 17:11
Damiles Damiles is offline
Registered User
FRC #3389
 
Join Date: Jan 2010
Location: Maryland
Posts: 6
Damiles is an unknown quantity at this point
Re: Programming 24v relay

Quote:
Originally Posted by Jon236 View Post
From the LabView Getting Started screen...look in the Examples section for a solenoid example. Remember, to use the 24v Festo you will have to use a Solenoid module in slot 7 or 8 and connect the power connector to the 24 v supply on the Power Distribution Board. You cannot use a Relay!

Thank you Jon and Team 236.
Thats Perfect!!

This is probably a dumb question. But after I modify the labview Solenoid example how do I get it saved in/under my main robot program?
Reply With Quote
  #4   Spotlight this post!  
Unread 28-01-2010, 17:28
Damiles Damiles is offline
Registered User
FRC #3389
 
Join Date: Jan 2010
Location: Maryland
Posts: 6
Damiles is an unknown quantity at this point
Re: Programming 24v relay

Quote:
Originally Posted by Jon236 View Post
From the LabView Getting Started screen...look in the Examples section for a solenoid example. Remember, to use the 24v Festo you will have to use a Solenoid module in slot 7 or 8 and connect the power connector to the 24 v supply on the Power Distribution Board. You cannot use a Relay!

Thank you Jon and Team 236.
Thats Perfect!!

This is probably a dumb question. But after I modify the labview Solenoid example how do I get it saved in/under my main robot program for downloading to the cRio?
Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2010, 19:15
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Programming 24v relay

Rather than save the example under your Robot project, you probably want to want to open both and copy/paste the solenoid code into your source. The first thing to do is to open Begin where you'll open and store the solenoid refnums.

Then in your code where you want to change the solenoid state, read the refnum and update the state by setting the solenoid, like in the example. Finally, in Finish, read and close.

Note that you may want to build a subVI that updates the state so that you can do it in different places in your program, auto, tele, etc.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 29-01-2010, 19:58
Damiles Damiles is offline
Registered User
FRC #3389
 
Join Date: Jan 2010
Location: Maryland
Posts: 6
Damiles is an unknown quantity at this point
Re: Programming 24v relay

Quote:
Originally Posted by Greg McKaskle View Post
Rather than save the example under your Robot project, you probably want to want to open both and copy/paste the solenoid code into your source. The first thing to do is to open Begin where you'll open and store the solenoid refnums.

Then in your code where you want to change the solenoid state, read the refnum and update the state by setting the solenoid, like in the example. Finally, in Finish, read and close.

Note that you may want to build a subVI that updates the state so that you can do it in different places in your program, auto, tele, etc.

Greg McKaskle
Thank you Greg. We'll try that as soon as I figure out what you just said! LOL We reeeaaaaally are newbies at Labview.
Reply With Quote
  #7   Spotlight this post!  
Unread 29-01-2010, 20:48
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Programming 24v relay

Understood. If you have more specific questions, ask away.

Greg McKaskle
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming 2 buttons for a relay team877 NI LabVIEW 15 18-02-2011 00:18
Programming a relay in C++ Kage C/C++ 2 10-01-2009 17:51
Easy C Relay Programming Team_486 Programming 1 26-03-2007 15:01
Pneumatics (Spike Relay, Solenoid etc.) Programming oceansidehs Programming 8 10-02-2007 13:58
Relay Programming Questions... comwiz7 Programming 11 21-02-2006 13:04


All times are GMT -5. The time now is 11:19.

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