LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Actor Framework - Possible to do an Abstract Reply Message using Interfaces?

Solved!
Go to solution

Hello,

Traditionally I have avoided Reply messages and the "Send and Wait for Response.vi" function in the Actor Framework. However I have a LabVIEW application where we will be using a webserver to respond to external code that connects to this webserver (likely written in python or another language). We want the webserver code to forward the request to a lower level actor and then wait in place for the response and send it back. The customer is pretty adamant about wanting a synchronous message here in place as they like to see the response coming back in place.

 

Due to the nature of the lower level actors and the fact they are part of submodules and need to stay separate from the higher level code, is there  a way to do what is essentially an Abstract Reply Message. When I've tried to put this together I run into the problem of the output of the interface method not being able to go to a more generic "Actor" class since interfaces of course cannot inherit from a class.

 

Belockeh_0-1662490354364.png

 

Any help is much appreciated.

 

Also I am using LabVIEW 2021 SP1 in case that is relevant. Thanks

0 Kudos
Message 1 of 2
(975 Views)
Solution
Accepted by topic author Be-lock-eh

I figured it out. You have to use the new node "Casting Utility for Actors.vim". This works:

Belockeh_0-1662499124317.png

 

0 Kudos
Message 2 of 2
(948 Views)