07-24-2014 05:10 AM
Is there any Way to find Which case is Executing in LabVIEW VI programmatically and Display it..
Solved! Go to Solution.
07-24-2014 06:35 AM
I wrote this a few years ago: http://lavag.org/files/file/199-state-machine-follower/
This JKI RCF Plugin sets the Visible Frame property of a Case Structure while the owning VI is running. Use it to follow the execution through the cases in your string-based State Machine/Sequencer when Execution Highlighting isn't fast enough (and, it's never fast enough).
The use-case I wrote this to improve is setting a Breakpoint on the Error wire coming out of the main Case Structure and probing the Case Selector terminal so I can float-probe wires during execution. The problem with this is that I had to manually select the current frame every time. This is boring, so I developed this plugin to automatically set the Visible Frame to the case most recently executed.
You might be able to adapt it to your needs. The basic idea is that a custom probe on the wire to the Case structure's selection terminal sends a notification to a VI that displays the appropriate case.
We might be able to help you develop something easier if you'll give us more information. Is it OK if the code to display the case is in the same VI?
07-24-2014 06:57 AM
07-24-2014 07:53 AM
Thank You for your timely response...How can I install that Plugin into LabVIEW 2013..I have downloaded it and using VI package Manager i am trying to Install it but it showing some errors,,Pls find attachment of that Error Pop Up
07-24-2014 01:05 PM
I'm sorry for taking so long, and for leading you down a bad path. I forgot I had adapted this to work as a Quick Drop plugin.
Unzip the attachment into <LabVIEW 2013>\resource\dialog\QuickDrop\plugins. Select the string wire leading into the Case selector terminal and invoke the quick-drop plugin with ctrl-space, ctrl-f, then run your program.
07-24-2014 01:16 PM
I just now published the Quick Drop plugin here - https://decibel.ni.com/content/docs/DOC-38903#comment-36562 There's more information on how to install/use it there.