Jump to content

Private Messages in Actor Framework


Recommended Posts

Has anyone come up with a way of creating private messages that can only be sent (with Send my_method.vi) from within VIs of an Actor descendant? The main application would be for creating messages that could only be sent from parallel loops inside an actor's Actor Core.vi to the parent method so that the main actor loop can process the message. For instance, if you only want parallel processes inside the override of Actor Core.vi to be sending their error info back to the loop in the parent method, using a private-scoped message could keep any other VI exterior to the class from accidentally sending error info to the actor.

Link to comment

A) Private messages that the actor sends only to itself can be done by putting the message class in the same library as the actor and making the message class itself be private scope.

B) Protected messages that the actor or its children can send can be done by making the private message as per (A) and then adding a protected method to the actor class that sends the message.

C) This is a good question to archive as part of the Actor Framework overall. Would you mind reposting it at http://ni.com/actorframework so I can answer it again there? I don't think it has been asked before.

Link to comment
  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.