jplandry Posted September 4, 2009 Report Share Posted September 4, 2009 Hello JKI Software, I am a frequent lurker in NI, LAVA, and OpenG forums and greatly admire OpenG and Mr. Kring's work in general. I have used an early form of the OpenGOOP framework to build a data acquisition and analysis application suite (5000+ VI count) for a research optical biosensor (my PhD dissertation project). For an application of this size, it is no surprise that I learned and applied the state machine paradigm many times over. I found a flavor that suited my needs and style best (queued state machine, with states in enums), but there were still many flaws in my code organization schemes. I've been too busy adding needed features to sit down and figure out how to resolve those stylistic problems. That is, until I saw the screen shots of the JKI state machine! I picked up two key features that would greatly clean up my own state machines: (1) Create named local variables by circulating a cluster in a shift register. In particular, the trick of using named constants in an initialization state was new to me. (2) The flexibility of string-based states. Although string-based states are prone to typing-errors, I think the fact that you don't need to maintain a state enum type-def compensates. In short, the JKI State Machine looks great, but I'm writing this post because I can't use it! Right now, I'm locked-in to LabVIEW 7 Express. I know many slick features, such as the drag and drop code generation, are inherently LabVIEW 8.2 features, but I suspect that the "core" of the state machine (the state parser, the state builder, the state adder) could be saved in an earlier version. Is this possible and is this something JKI Software would be willing to do for those of us locked-in to pre-LV8 versions? If it's not, then I will probably put together my own imitation of your state machine. In either case, thanks for sharing your hard earned design so openly! Cheers, jplandry Link to comment Share on other sites More sharing options...
Jim Kring Posted September 4, 2009 Report Share Posted September 4, 2009 Hi! Thanks for the kind words. We're happy that you found the JKI State Machine and think it will be useful for you. I'll check to see if it's feasible to down-save it to an older version of LabVIEW -- I'll let you know. Thanks, Link to comment Share on other sites More sharing options...
Philippe Guerit Posted September 5, 2009 Report Share Posted September 5, 2009 Here you go (7.0):_jki_lib_state_machine.zip Note: Copy this somewhere in your user.lib folder Philippe Link to comment Share on other sites More sharing options...
jplandry Posted September 8, 2009 Author Report Share Posted September 8, 2009 Thank you! Much appreciated. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.