07-31-2024 11:07 AM
Hi,
I have an actor and the actor has some private data. I create a method vi to update some of its private cluster data. Then I create a message out of it. Then in actor core, by using the read self enqueuer I send the message I created earlier to the actor itself to update its private data. But now if I unbundle the actor again after sending the message to see if the private data has been updated, I see it has not been. So that is now how actors work. I cannot pass the actor data within the actor core by sending messages. I have to directly send the data within the actor core. Is that how it works?
Solved! Go to Solution.
07-31-2024 01:48 PM
Reading your question in the context of new AF developers, I think what you are doing is forking the actor wire and expecting one fork to update data on the other (apologies if I'm misreading!). The wire is a normal, by-value LabVIEW wire not a channel wire or anything fancy, so one fork doesn't affect the other unless you add another communication mechanism like a DVR inside that is by reference and not by value:
07-31-2024 02:28 PM - edited 07-31-2024 02:30 PM
Of course, reference, yes thats how you do it. I forgot, i havent done actor frame work and i dont have that much experience in it. I remember updating the values in the past, but i forgot how. Yes by using references. Thank you. I feel like an idiot. And yes I was forking the wire. Thank you