LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to find an Actor Framework tutorial for my needs

I've gone through some Actor Framework tutorials on youtube, but none of them are really helping me to apply the Actor Framework to my project. I'm looking to find a basic example that does something along the lines of this:

AF example.png

 

In my basic example/architecture, I want the Operating State Manager Loop to be "the boss" of all the other loops, where it can put the loops into an "idle" state where they don't do anything, or a "run" state where they are actually doing something.

 

Also, all these loops would be separate VI's running concurrently.

 

Can anyone point me to a tutorial/example that shows this kind of operation? Thanks

0 Kudos
Message 1 of 6
(1,406 Views)

If you are very new to LabVIEW i would suggest you use Master/Slave Instead of Actor Framework.

 

Where you have a Master  (Operating State Manager) and  Slaves (Measure Temperature & Measure Voltage)

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 6
(1,334 Views)

What have you tried so far? Attach the code here. If you have nothing then start by creating one of the "slave" actors. Decide what data has to be stored in the private data and which methods it should have. Then which of these methods need to be "called" from outside and create messages for them. Think of this actor as a separate entity and try not to make it dependent on their caller. Then design the second actor and finally the caller actor "Operating State Manager". If you get stuck, come back here and attach code.

Lucian
CLA
0 Kudos
Message 3 of 6
(1,307 Views)
Some people, when confronted with a problem, think "I know, I'll use regular expressions Actor Framework." Now they have two problems.

 

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

0 Kudos
Message 4 of 6
(1,304 Views)

@PalanivelThiruvenkadam wrote:

If you are very new to LabVIEW i would suggest you use Master/Slave Instead of Actor Framework.

 

Where you have a Master  (Operating State Manager) and  Slaves (Measure Temperature & Measure Voltage)


Is Master/Slave another framework for loop/VI communication? Or are you referring to the concept

0 Kudos
Message 5 of 6
(1,293 Views)

Have you looked at the Evaporative Cooler shipping example?  It controls different cooling methods with a top-level control UI.  At the least it will show you just how much underlying code is required for even a simple AF project.  That's why most people are recommending a simpler architecture.  

 

Of course you should also google:  "labview actor framework tutorial".  The top hits are good simple tutorials but you will find that they can be confusing since the AF has gone through some internal changes and there are also new tools from Bloomy, Delacor, etc. that automate a lot of the drudgery.  You should look past that for now and start with the simple two actor examples or the 3 actor calculator here:

 

Beginner Tutorial (Very Simple 3-Actor System) - NI Community

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 6 of 6
(1,277 Views)