At a recent JKI Team “LabVIEW Lunch” (where the team gets together to eat and talk shop), we were discussing best practices for using the JKI State Machine, an easy-to-use yet powerful state machine template we created to help LabVIEW developers write code faster (and can even help you pass the Certified LabVIEW Developer exam).
As a result of this meeting, we had a lot of great ideas and we decided that we would publish some of them for your feedback and to share them with others in the community.
Here is a list of JKI State Machine Best Practices:
(I'll be updating this list as new articles come out)
- Don’t hide your state strings in subVIs
- Don’t add code and logic inside the Event Structure
- Keep the Original Size (i.e. don’t grow the structures)
- Use macros instead of “chaining” together sequential states
- Left-justify State Strings instead of Right-justify
Want even more best practices, tutorial videos, and hands-on exercises?
Check out our new JKI State Machine Basics Training Course!
And a note from our sponsor: At JKI we use the JKI State Machine every day to help our our clients get their innovative high-tech products and technology to market fast. If you need help taking your system software to the next level or reach an important milestone, contact us to learn more about our services.