Actor Framework Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Are feedback nodes in multiple instances of an Actor shared?

Solved!
Go to solution

I have two instances of the same actor in my application. In the actor, I use a feedback node to hold a previous time tag and subtract it from a new time tag provided via a message. I noticed the time difference wasn't correct and started troubleshooting. What I found is that apparently the same feedback node in instance 1 was also being written in instance 2 and vice versa). I created a private data member to hold the previous time tag and the issue was resolved.

 

So are feedback nodes shared somehow between actor instances?

0 Kudos
Message 1 of 3
(2,938 Views)

This isn't an issue specific to Actors. See the help guide to reentrancy for more information.

 

Basically, if you don't have specific types of reentrancy, all of your distinct Actors (of the same class type) will call the same VI. This can lead to shared shift registers/feedback nodes.

 

Hopefully the article can explain it in a useful way 🙂


GCentral
0 Kudos
Message 2 of 3
(2,924 Views)
Solution
Accepted by topic author BillMe

I considered that but didn't have time to try "pre-allocated" clone and just went with the private data solution. But that answers my question, thanks.

0 Kudos
Message 3 of 3
(2,896 Views)