|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#16
|
||||
|
||||
|
Re: Encoder v.s. Steering
I'll start with your "bit switch".
![]() This could be more efficient and easier to read by bundling the boolean values into an array and using the function "boolean array to number" (found in the boolean pallette): ![]() What would make it better still is to use the refnum registry (as opposed to allocating and deallocating the channels each time), and to put the whole thing in a subVI: ![]() Also notice the use of the FOR loop and the string array constant make the code smaller and cleaner. If nothing is wired to the N terminal on a FOR loop but you wire an array to it, it will execute for every element in that array. I added a comment for why the values are inverted. To someone not familiar with the digital sidecar, this would not be obvious. Are you comfortable with all of this? |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Car Steering... | tuna.and.cheese | Programming | 3 | 25-02-2009 21:51 |
| Encoder for Crab Steering | Alphabet OJ | Programming | 4 | 09-02-2009 20:49 |
| Screwing Encoder into Encoder Mount? | Adrien | Electrical | 3 | 25-01-2009 18:14 |
| Steering Wheels | Chris_Elston | Programming | 3 | 17-01-2005 15:31 |
| need glp programing steering with a steering wheel | Matchew | Programming | 2 | 10-02-2003 14:20 |