LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Locating what part of the program is currently running

Solved!
Go to solution

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

0 Kudos
Message 1 of 6
(2,655 Views)
Solution
Accepted by Nicola86

Click the light buld to go into the execution highlighting?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 6
(2,650 Views)

Beat me to it!

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 3 of 6
(2,643 Views)

Thanks for that solution! Would have taken me ages to figure that out myself!!

0 Kudos
Message 4 of 6
(2,641 Views)

@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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 5 of 6
(2,628 Views)

Ah these are instances where this knight of ni adds value.Smiley Very Happy 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

Message 6 of 6
(2,590 Views)