Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FRC Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=176)
-   -   Programming 24v relay (http://www.chiefdelphi.com/forums/showthread.php?t=81339)

Damiles 28-01-2010 13:41

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

Jon236 28-01-2010 13:55

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!

Damiles 28-01-2010 17:11

Re: Programming 24v relay
 
Quote:

Originally Posted by Jon236 (Post 908607)
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?

Damiles 28-01-2010 17:28

Re: Programming 24v relay
 
Quote:

Originally Posted by Jon236 (Post 908607)
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?

Greg McKaskle 28-01-2010 19:15

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

Damiles 29-01-2010 19:58

Re: Programming 24v relay
 
Quote:

Originally Posted by Greg McKaskle (Post 908826)
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.

Greg McKaskle 29-01-2010 20:48

Re: Programming 24v relay
 
Understood. If you have more specific questions, ask away.

Greg McKaskle


All times are GMT -5. The time now is 23:20.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi