|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
Re: Off season Questions **Need Help Asap/Code Check**
It looks like it will do what you want. You got it exactly as I described (except for the superfluous wiring through of the select input to an output of each case block -- that can be deleted without worry).
|
|
#2
|
||||
|
||||
|
Re: Off season Questions **Need Help Asap/Code Check**
Thanks Alan. It makes total sense now after seeing it done. I can't believe I didn't think of doing it that way before.
|
|
#3
|
|||||
|
|||||
|
Re: Off season Questions **Need Help Asap/Code Check**
Quote:
The TechnoKats 2009 robot had several motors that were used as either off, fixed speed forward, or fixed speed reverse. Our code got a lot less cluttered when we build a subVI to handle that function. Given a motor reference and a pair of button inputs, it did exactly what you were asking for. The forward and reverse speed values defaulted to +/- 1, but could be overridden by additional inputs. We also added limit switch inputs to disable travel in one or the other direction. That exact subVI wasn't reused in 2010 because it had never been published and was therefore not strictly legal for the new season according to the manual, but it was only a matter of minutes to recreate it from the basic concept. If we need it again next year, we know how to do it, and we'll probably put it out for public enjoyment this time. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HELP- Need Globe Motors ASAP | Brandon Holley | General Forum | 0 | 03-11-2009 10:37 |
| Shipping confusion need help ASAP | Doug_I_854 | General Forum | 7 | 19-02-2008 10:58 |
| need help with ifi asap!! | 1075master | Technical Discussion | 13 | 06-01-2006 14:22 |
| Need Mplab help ASAP !! | L33T-meh- | Programming | 3 | 03-02-2004 21:39 |