Jump to content


Photo
- - - - -

[CR] State Machine Follower


  • Please log in to reply
3 replies to this topic

#1 jcarmody

jcarmody

    The 500 club

  • Premium Member
  • 787 posts
  • Location:North Carolina, United State, Earth
  • Version:LabVIEW 2012
  • Since:2007

Posted 19 October 2011 - 08:36 PM

*
POPULAR

Posted Image


Name: State Machine Follower
Submitter: jcarmody
Submitted: 19 Oct 2011
File Updated: 20 Oct 2011
Category: JKI Right-Click Framework Plugins
LabVIEW Version: 2009
License Type: Creative Commons Attribution 3.0

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.

Use - Select the String wire connected to the main Case Structure's selector terminal, invoke the JKI RCF and select StateFollower.

Special thanks to - AristosQueue, for his help over here.

LabVIEW versions - tested in 2009 & 2011 - it should work in 2010 as well

Installation - use VIPM to install the VI Package

License - Creative Commons 3.0 Attribution (Really, do whatever you want. I don't care.)

Click here to download this file

Resistance is Mandatory

No rulers
No masters
NO CONSENT

 


#2 jcarmody

jcarmody

    The 500 club

  • Premium Member
  • 787 posts
  • Location:North Carolina, United State, Earth
  • Version:LabVIEW 2012
  • Since:2007

Posted 20 October 2011 - 12:31 PM

I tried making this work in older versions, but the Attach Probe wire method didn't work in 8.2 or 8.6. If you believe I'm mistaken I'll take another crack at it.

Resistance is Mandatory

No rulers
No masters
NO CONSENT

 


#3 jcarmody

jcarmody

    The 500 club

  • Premium Member
  • 787 posts
  • Location:North Carolina, United State, Earth
  • Version:LabVIEW 2012
  • Since:2007

Posted 20 October 2011 - 03:40 PM

Here's a demo VI with instructions to show what this plugin does.

Attached Thumbnails

  • StateFollower demo_BD.png

Resistance is Mandatory

No rulers
No masters
NO CONSENT

 


#4 Mark Balla

Mark Balla

    Extremely Active

  • Premium Member
  • 490 posts
  • Location:Gurnee Illinois
  • Version:LabVIEW 2011
  • Since:1997

Posted 28 October 2011 - 02:01 PM

Certified 10-28-2011 placed in JKI Right-Click Framework.