|
|
|
| Breakaway from the madness and go through the tunnel of love with me! |
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Microswitch program..
Basically I want to press a button and let go but the motor begins to run until the switch is activated then I want it to roll back for 5 seconds. Can someone give me an example on how to do this using Labview.
|
|
#2
|
||||
|
||||
|
Re: Microswitch program..
Is this what you are trying to accomplish? I think some other programmers on here could help out and also make sure I haven't made mistakes....
http://imgur.com/a/oSPD4 Last edited by Keyreaper : 11-02-2012 at 18:05. Reason: Forgot joysticks... |
|
#3
|
|||
|
|||
|
Re: Microswitch program..
Yes thank you..
|
|
#4
|
||||
|
||||
|
Re: Microswitch program..
I'm not sure it actually works, as I don't normally work with the wait.vi function so I'd build it up just to make sure.
|
|
#5
|
||||
|
||||
|
Re: Microswitch program..
make sure you don't put that in teleop. That wait will stall out the loop.
|
|
#6
|
||||
|
||||
|
Re: Microswitch program..
He is correct... Perhaps a Elapsed timer would work better.
|
|
#7
|
||||
|
||||
|
Re: Microswitch program..
actually, you would do good to do it the way you have it here, but throw it into a separate loop in periodic tasks. There is no good way that I have found yet to do a delay on the cRIO without running it in parallel. Mainly because the timestamp is kind of flakey.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|