|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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!
|
|
#3
|
|||
|
|||
|
Re: Programming 24v relay
Quote:
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? |
|
#4
|
|||
|
|||
|
Re: Programming 24v relay
Quote:
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? |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
|||
|
|||
|
Re: Programming 24v relay
Quote:
|
|
#7
|
|||
|
|||
|
Re: Programming 24v relay
Understood. If you have more specific questions, ask away.
Greg McKaskle |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |