07-13-2010 09:32 AM
Hello Everyone
Hopefully my question will be fairly easy to answer! I currently have a Program which consists of a main Case Structure with 66 cases. Within this case structure there are many other case structures. To run the whole way through the program takes about 15 minutes. I was wondering that when it is running, can I do anything so that LabVIEW will take me to the exact point it is currently at in the program. At the moment I have to estimate where it is from the values that it has so far filled in!
Thanks
Nicola
Solved! Go to Solution.
07-13-2010 09:36 AM
Click the light buld to go into the execution highlighting?
Ben
07-13-2010 09:38 AM - edited 07-13-2010 09:39 AM
Beat me to it!
07-13-2010 09:39 AM
Thanks for that solution! Would have taken me ages to figure that out myself!!
07-13-2010 09:49 AM
@Nicola86 wrote:
Thanks for that solution! Would have taken me ages to figure that out myself!!
If the light bulb is new to you then let stop and comment about it use.
That feature of LabVIEW is one of the most useful learning tools I have ever seen in any other software I have ever touched. You should take the time to watch all of your code run in that mode. Play a game with yourself to try and predict which values will flow next. Once you get good enough at that game to always be able to predict what happens next, you will have a very good handle on the "data flow paradigm".
And one more thing...
When running in that mode, LV only automates one step at a time and force your code to run as if it was running single threaded. If your code alsways work with the light bulb but does not when not in lightbulb mode, then you may have a Race Condition... but that is a story for another day.
Ben
07-14-2010 07:54 AM
Ah these are instances where this knight of ni adds value. I would have stopped with just suggesting the highlight execution button.
By the way as ben has suggested this tool is definetly one of the specialities in labVIEW. Vote here if you want to customize it still
http://forums.ni.com/t5/LabVIEW-Idea-Exchange/User-defined-partial-Highlight-Execution/idi-p/917701
http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Variable-Speed-highlight-execute/idi-p/920528