7. How Actor Systems Stop and What Happens When an Error Occurs

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ธ.ค. 2024

ความคิดเห็น • 6

  • @williamlow7256
    @williamlow7256 3 ปีที่แล้ว +1

    For anyone that was confused like me about the last Ack: I had to watch a couple times at 1:45, when I realized that the error is passed to the "final error code" terminal. This is what allows that error to be sent to the calling actor's "Handle Last Ack Core.vi". If the calling actor does not need to know that the called actor shut down, this terminal can be connected to a constant of zero.
    Thanks for the video series Tom. Super helpful!

  • @xxcharrlottexx
    @xxcharrlottexx 2 ปีที่แล้ว

    These are the great videos on actor framework. I remember watching the NI video when they first launched the actor framework, unfortunately everything went above my head then. I haven't got chance to go through your links, but probably if the step by step documentation or uml for chat windows development based on the video series would give the world's easiest references on using actor framework to the beginners. Again, these are great stuff. Thanks.

  • @andrewrjPLAYER
    @andrewrjPLAYER 4 ปีที่แล้ว

    Hi there, thanks for the videos.
    I did not understand how the error can propagate to callers, since the send last ack message is inside a no-error case. Can you post an example using the Handle Last Ack vi?

    • @TomsLabVIEWAdventure
      @TomsLabVIEWAdventure  4 ปีที่แล้ว +1

      Hi Andre,
      If you have a look in actor.vi (Actor Framework.lvlib:Actor.lvclass:Actor.vi), you'll see that the case structure you're referring to isn't wired to the error coming out of Actor Core.vi. Instead, the error wire is from Pre-Launch Init. This means, if Pre-Launch Init outputs an error, the Actor Core nor Send Last Ack will run. However, Send Last Ack will run if Actor Core returns an error.
      I tend to use the override 'Handle Last Ack' when I want to update various registers (to keep a track of what's running).
      I hope this helps :)

  • @pantherlabmx
    @pantherlabmx 5 ปีที่แล้ว

    so, if you want to handle errors?, how do you do that, i mean, what if an actor operates a hardware device, let's say a DAQ, if you disconnect the daq when the actor is operating? what happens? how to handle this kind of errors, in last ack override?. By the way, you are my labview hero, i'm very huge fan, regards from México.

    • @TomsLabVIEWAdventure
      @TomsLabVIEWAdventure  5 ปีที่แล้ว +1

      Thanks :)
      Override the Handle Error.vi, by default any error will cause the actor to stop. But you could choose to ignore/report/change etc. any known possible errors in the Handle Error.vi
      Does that make sense?