![]() |
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.
|
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 |
Re: Microswitch program..
Yes thank you..
|
Re: Microswitch program..
Quote:
|
Re: Microswitch program..
make sure you don't put that in teleop. That wait will stall out the loop.
|
Re: Microswitch program..
Quote:
|
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.
|
| All times are GMT -5. The time now is 00:45. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi