Documente Academic
Documente Profesional
Documente Cultură
Wireless access
Username: guest-alatec
Password: pypuzp54
1
Introduction to the Actor Framework
Stephen R. Mercer
Senior Software Engineer
LabVIEW R&D
Allen C. Smith
Senior Systems Engineer
Systems Engineering
2
Agenda
3
What is the Actor Framework?
4
Queue-Driven State Machine
5
Scalable
Larger Systems MOdular
REusable
Simple
6
Three Sources of Code Replication
Append
7
Source 1: Override Speed
Toggle/
Notify
Direction
Speed
Toggle
On
Direction
8
Cluster and Node...
9
… become Class and Method
10
… become Class and Method
11
Source 2: Extend
Speed
E-Stop Toggle
On
Direction
Speed
Toggle
On
Direction
12
Message and Case Structure…
13
… become Class and Dynamic Dispatch
• Message is strongly-typed
• Don’t need to translate variants
or flatten strings
• No change to state machine
Add new method to target
class and message class to
access it
14
Source 3: Append
16
New Class: Actor.lvclass
17
Using the Parent
18
Fan UI.lvclass:Actor Core.vi
Using the Child
• Child actors may add UI to functional
parent actors
• Can have multiple UIs to same
functionality
• Can test UI and functions independently
19
Standardizing Communication:
Launch Actor.vi
20
Demonstration
22
For Best Results
25
Recap
• Extensible along three axes without replication:
Override
Extend
Append behavior
https://decibel.ni.com/content/docs/DOC-17193
Getting started with the Actor Framework
34