View Single Post
  #6   Spotlight this post!  
Unread 20-01-2012, 17:55
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Re: How does this program look?

Quote:
Originally Posted by Joe Ross View Post
One good practice is to make your programs flow from right to left. I would put your Set Output to the right of your case statement, so that it is easier to read.
That is the power of dataflow programming. If you program it neatly, you can easily see what is going on.

Typically, inputs are wired in on the left, and outputs come out of the right. So the "flow" of the program will go from left to right, following the necessarily incremental transfer of data through the wires. It's a powerful thing to use, since you can "see" how the program works, instead of reading it, like a text based programming language. (Although, in their defense, if you get good at a text based programming language you can also easily see what's going on. Graphical languages are easier for beginners)
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
Reply With Quote