From 11:00 PM CST Friday, May 9th - 3:00 PM CST Saturday, May 10th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Quick Drop Enthusiasts

cancel
Showing results for 
Search instead for 
Did you mean: 

State Machine Follower

I had adapted my JKI RCF plugin to Quick Drop a while ago but never put it here. - http://lavag.org/files/file/199-state-machine-follower/ 

This 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.

1.Unzip the attached file into your \resource\dialog\QuickDrop\plugins folder

2.Select the (String) wire feeding a Case structure's selector terminal

3.Press Control-Space-Control-f

4.Enjoy watching your Case structure show the most recently run frame

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 1 of 2
(6,546 Views)

This is what prompted me to publish this plugin - http://forums.ni.com/t5/LabVIEW/Is-there-any-Way-to-find-Which-case-is-Executing-in-LabVIEW-VI/m-p/2...

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 2 of 2
(4,017 Views)