|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Labview Solenoid Programming
The programmer for my team left last yeear so i've been trying to learn labview
My question is that the current robot calls for multiple push button solenoid's I was wondering if someone could post how to do that and show some pictures that would be nice What im looking for to sum up is multiple push button digital output / solenoid push button turns 1 motor the magnetic digital input for the pneumatic |
|
#2
|
|||||
|
|||||
|
Re: Labview Solenoid Programming
I have an example here for a push button solenoid and the rest of the required pneumatic system.
Here is a relay example for when you have a motor driven by a Spike. This does forward and reverse, but you can change "reverse" to "off" if you like. Did you want a motor example that uses a speed controller? I don't know what "the magnetic digital input for the pneumatic" means... |
|
#3
|
|||
|
|||
|
Re: Labview Solenoid Programming
I'm really new to programming, so don't really know much... I'm trying to figure out how to use the Solenoid example code in the basic cRIO code. Is that the pictures that you posted, or is that something else?
Tasha |
|
#4
|
|||
|
|||
|
Re: Labview Solenoid Programming
so for multiple solenoids would i use multiple solenoids would i put in multiple solenoids doing the same thing foe each
I would do the same thing for the Relay as I would for the solenoid correct and pneumatic encoder i was speaking of is the MRS magnetic reed switch from BIMBA The motor control will simply Raise 2 pistons so when they extend to reach the top of the tower |
|
#5
|
|||||
|
|||||
|
Re: Labview Solenoid Programming
Yes, just add more of the same solenoid code for each new solenoid you want to add.
Repeat the Relay code for more Relays (Spikes). The Relay is treated a little differently than the solenoid, because Relays have 4 possible inputs - Forward/Reverse/On/Off and you need to use a case statement block to set those properly. The magnetic reed switch gets connected to one of the Digital Sidecar inputs labeled Digital I/O. The same place that the pressure switch got connected and to the same signal/ground(1) pins, no power. The pictures I posted are just my example of how to setup the compressor and use solenoids with the 2010 LabVIEW framework. |
|
#6
|
|||
|
|||
|
Re: Labview Solenoid Programming
I have come across another problem
When I tried to put in 1 solenoid and 1 motor relay for the motor to lift the arm A popup that says my code is broken I am not sure if these pictures uploaded with this post but on the chance they did it is a picture of my begin vi and the teleop vi the begin vi I think is suPPosed to open a reference to a relay and solenoid please look at it and tell me if I am on the right track? ![]() Last edited by 3p1c w1n : 12-02-2010 at 15:47. |
|
#7
|
|||||
|
|||||
|
Re: Labview Solenoid Programming
Sorry, no picture came through.
If you try to run a broken vi, LabVIEW will give you a list of the places that are broken. Selecting from the list will take you directly to the broken spot in the block diagram. |
|
#8
|
|||||
|
|||||
|
Re: Labview Solenoid Programming
What I see looks correct and as it should be.
I see that the error is in teleop.vi, but I can't see where it is. You can tell by the broken arrow button in the top left of the window header. (The Begin.vi has a nice error-free solid arrow.) Double-click on the error in the popup window as Alan recommended and it will take you to the problem and highlight it. What's in the False case for the Relay? Last edited by Mark McLeod : 12-02-2010 at 15:57. |
|
#9
|
|||
|
|||
|
Re: Labview Solenoid Programming
What would i need in the false because currently there is nothing
|
|
#10
|
|||||
|
|||||
|
Re: Labview Solenoid Programming
Well, what happens is your motor will begin to run forward as soon as button 11 is pressed, but there is nothing to stop it.
Usually, in the False case you'd set the Relay to Off. Last edited by Mark McLeod : 12-02-2010 at 16:02. |
|
#11
|
|||
|
|||
|
Re: Labview Solenoid Programming
ok I set it to off when the case is false and error still pops up. I attached the error message.
Thanks for your help. |
|
#12
|
|||||
|
|||||
|
Re: Labview Solenoid Programming
Don't try to build the broken project. Just click the "run" arrow and LabVIEW will be able to show you where it is broken.
|
|
#13
|
|||
|
|||
|
Re: Labview Solenoid Programming
Thanks for the help
I haven't gotten that stuff working yet but I did get the compressor running |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programming Double Solenoid? | Brandon_L | NI LabVIEW | 13 | 14-02-2009 10:33 |
| Solenoid Programming Issue. | Dr. Manhattan | Pneumatics | 2 | 10-02-2009 17:42 |
| solenoid programming | holty531 | Programming | 0 | 10-02-2008 16:17 |
| Programming a Solenoid | Brigander | Pneumatics | 4 | 17-02-2007 14:06 |
| Solenoid Programming | duckshepherd | Pneumatics | 1 | 17-02-2003 09:15 |