05-21-2018 09:31 PM
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?
Solved! Go to Solution.
05-22-2018 12:16 AM
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 🙂
05-22-2018 09:36 PM
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.