Youssef Menjour Posted November 13, 2023 Report Share Posted November 13, 2023 Hi everybody, I'm trying to use in actor framework the substitute actor override but there is no example on internet. Is someone can provide me a simple example to understand it ? Thank you Quote Link to comment
Stagg54 Posted November 13, 2023 Report Share Posted November 13, 2023 I am not an AF person, but I think if you look at the State Pattern Actor, I'm pretty sure it uses that override. Quote Link to comment
Youssef Menjour Posted November 13, 2023 Author Report Share Posted November 13, 2023 I really need to understand how it works. Unfortunatelly there is few information on substitute actor override. Anyone able to help me ? Quote Link to comment
Jordan Kuehn Posted November 13, 2023 Report Share Posted November 13, 2023 Stagg54's suggestion was a good one. Take a look at the State Pattern Actor example project that heavily utilizes this override. https://www.vipm.io/package/ni_lib_state_pattern_actor/ Quote Link to comment
Youssef Menjour Posted November 13, 2023 Author Report Share Posted November 13, 2023 It's quite frustrating not to have a direct answer to my question and to be forced to dissect a package to understand. The simplest thing would have been to explain this override better. I'll go see but it's really not practical Quote Link to comment
Jordan Kuehn Posted November 13, 2023 Report Share Posted November 13, 2023 Included in the project is documentation that directly addresses your question about overriding the Substitute Actor.vi including some caveats and considerations to make while doing it. The project itself is a simple functional example as well, as originally requested. 1 Quote Link to comment
Youssef Menjour Posted November 13, 2023 Author Report Share Posted November 13, 2023 OK i'll check thank you Quote Link to comment
Youssef Menjour Posted November 21, 2023 Author Report Share Posted November 21, 2023 J'ai téléchargé le fameux state actor patern et clairement il n'explique absolument rien. Ou puis je trouver un exemple ? A quoi ça sert ? Est ce que quelqu'un sait vraiment ? Il n'y a aucun exemples null part dans les exemple NI et ce VI ne montre absolument rien clear 274 / 5 000 Résultats de traduction Résultat de traduction Good morning I downloaded the famous state actor patern and clearly it explains absolutely nothing. Where can I find an example? What's the point ? Does anyone really know? There are no examples anywhere in the NI examples and this VI shows absolutely nothing Quote Link to comment
Youssef Menjour Posted November 21, 2023 Author Report Share Posted November 21, 2023 (edited) Good morning I downloaded the famous state actor patern and clearly it explains absolutely nothing. Where can I find an example? What's the point ? Does anyone really know? There are no examples anywhere in the NI examples and this VI shows absolutely nothing How do we launch this switch actor? Where ? I don't understand the point of this VI? When hitchhiking, is the switch actor useful? (obviously no, since nowhere are the FIFO connections cut, the nesteds are not deleted in the actor who is going to be switched) Edited November 21, 2023 by Youssef Menjour Quote Link to comment
cordm Posted November 21, 2023 Report Share Posted November 21, 2023 Here is the original thread: https://forums.ni.com/t5/Actor-Framework-Discussions/Implementing-the-State-Pattern-in-Actor-Framework/td-p/3409456 The VIP contains a project template. Create a new project from that template and look around. It also contains a PDF with more info. 1 Quote Link to comment
Jordan Kuehn Posted November 21, 2023 Report Share Posted November 21, 2023 Implementing the State Pattern in Actor Framework.pdf This PDF is in the project template. I'm literally in the middle of a new State Pattern implementation and am using this template for the first time myself. If anything it could use a refresh with the new launch nested actor vis, but aside from that the information is available in this example project. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.