Table Of Contents

Actor Framework

Version:
    Last Modified: February 27, 2020

    The Actor Framework is a software library that supports writing applications where VIs performing different tasks run independently while communicating with each other.

    The Actor Framework builds on the queue-driven state machine (QDSM) model to include all of the benefits of QDSM design, such as mitigating the risk of deadlocks and race conditions while also applying object-oriented programming principles to maximize code reuse. The framework contains a set of classes that provide common state and message handling functions. Every class in the Actor Framework falls under one of the following parent classes:

    • Actor—Provides state data in a module.
    • Message—Passes between Actors to trigger state changes.

    Each VI in the Actor Framework represents an actor carrying out an independent, asynchronous task in the system. The actor maintains its internal state and broadcasts this state to the other actors. Just as baristas in a coffee shop can fill orders without waiting for the cashier or the customer to complete their tasks, actors can perform their function without waiting for other actors to finish and can react to messages from other actors as they have time.

    Use the Actor Framework template to get started using Actor Framework.


    Recently Viewed Topics