View Single Post
  #3   Spotlight this post!  
Unread 09-09-2011, 21:59
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview Benefits

Personally, I think what your mentor is going for is more of a process than a tool issue. Generally, it means that you measure and inspect what is really happening in the system. You use the measured data to identify potential issues that the code may not be prepared for. You use it to improve areas where it already works, but isn't optimal. And you test code or mechanism changes to show what impact they caused.

In other words, rather than trust only your eyes or anecdotal results, you try to develop data that convinces you and other members of your team and leads you to build a better robot, achieve a better performance, and better understanding of what you have built.

Incidentally, LV includes data input and data viewing into each function that you build. Each parameter in and out of each function is potentially viewable during execution. This will sometimes allow you to do just-in-time data viewing. I know, it never happens, but what if ...
* The robot is misbehaving
* Gee. I've never seen that before and have no idea what is causing it.
* I wish I had a printf of some stuff to know what might make it do that.
Provided the robot will continue with its misbehavior, LV allows you to drill down, function by function, looking at inputs and outputs until you find the issue.

Additionally, LV includes probes for wires. These are like watchpoints in C, but allow you to view the data while the system continues to run. And while printfs are awesome, graphs and charts are often even better, especially when trying to convey trends or large amounts of data that changes rapidly. You can do the graph on a LV panel, or you can log the data from C++ and view the file in an engineering tool.

I'd encourage you to look at LV and go through a few monitoring exercises with the mentor to help understand the engineering process that it promotes. Then learn how to apply that process in whatever tools you are using at the time. You don't always have to use it, but it is a good approach to be able to reference.

As always, if you have questions, just ask

Greg McKaskle
Reply With Quote