State of Grace - The State Pattern in LabVIEW

Опубликовано: 03 Август 2026
на канале: Tom's LabVIEW Adventure
5,347
75

The state pattern is a behavioural software design pattern that allows an object to alter its behaviour when its internal state changes. The state pattern can be interpreted as a strategy pattern, which is able to switch a strategy through invocations of methods defined in the pattern's interface.

Book Recommendations:
1) Design Patterns: Elements of Reusable Object-Oriented Software
2) Head First Design Patterns: A Brain-Friendly Guide: Building Extensible and Maintainable Object-Oriented Software

Video Recommendations:
1) "Lessons of the subVI call in asynchronous programming" (or "What would a subVI do?")    • "Lessons of the subVI call in asynchronous...  
2) OOP Tutorial:    • 1 of 6 Future Proof Your Code! Introductio...  
3) Actor Framework Tutorial:    • 1.  Recap of Modular Applications in LabVIEW  

00:00 Introduction
01:44 Case Structure Example - Tiff Helper Loop
10:34 Designing Software with Truth Tables
18:35 The State Pattern in Object-Oriented Code
41:06 State Pattern Actors - Using the State Pattern in the Actor Framework
52:05 Software Wizards





#LabVIEW