From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Actor Framework Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Following this guide to learn AF, why isn't this working

Solved!
Go to solution

I have been following this guide that I found here, trying to learn AF. I think I'm doing everything right, but am not seeing the indicators indicate as they should. What am I missing?

0 Kudos
Message 1 of 4
(1,448 Views)
Solution
Accepted by topic author TheWolfmansBrother

You can't split your Actor Core reference wires like this:

 

BertMcMahan_0-1634919574176.png

BertMcMahan_1-1634919593747.png

Your Bundle By Name outputs aren't going anywhere, so the references to your controls and indicators aren't getting to Actor Core. Probe your "Get value from Parent/Child" methods and you'll see the Refnums are 0000000 (i.e., "Not a Refnum").

 

The AF portions of your code (the messages) are working fine, but the control refs aren't getting to the right spots due to the outputs of Bundle By Name not getting set right. "Launch Child Actor" should also be inline with your Actor Core, not a split reference.

0 Kudos
Message 2 of 4
(1,415 Views)

Dumb mistakes, thanks. Also, figured out I needed to remove the parent class object from the child class actor core and replace the Read Self Enqueuer it was hooked to with a Read Caller Enqueuer (hooked to child class). 

0 Kudos
Message 3 of 4
(1,407 Views)

Ain't that always the thing? Learning some new toolkit and get bit by a bundle terminal 🙂

 

By the way, some earlier tutorials say you need to add the AF to the project manually. You can do that but you don't have to anymore; it'll show up in the Dependencies on its own after you add something from the Actor Framework palette (Data Communication -> Actor Framework).

Message 4 of 4
(1,397 Views)