08-15-2019 12:38 PM
I am new to LabVIEW web services and I am stuck on what seems to be a rather trivial issue.
I have a VI "Data_Update" that is updating an actor engine that is simply storing a time/date string.
I have a web service method "Get_Data (GET)" that is supposed to access that actor engine to get the time/date string. Instead my web service call is returning no data.
From what I can tell, when I publish/start my web service, it is creating another instance of the actor engine "Data_Store", and yes the data_store VI is non-reentrant.
Thanks in advance for any help/advice.
Aside: I know there are easier ways to have the service to return the time/date. This is more for proof of concept.
08-15-2019 02:07 PM
@Bolson785 wrote:
I am new to LabVIEW web services and I am stuck on what seems to be a rather trivial issue.
I have a VI "Data_Update" that is updating an actor engine that is simply storing a time/date string.
I have a web service method "Get_Data (GET)" that is supposed to access that actor engine to get the time/date string. Instead my web service call is returning no data.
From what I can tell, when I publish/start my web service, it is creating another instance of the actor engine "Data_Store", and yes the data_store VI is non-reentrant.
Thanks in advance for any help/advice.
Aside: I know there are easier ways to have the service to return the time/date. This is more for proof of concept.
That sound like the issue.
I wrote a Nugget called "Reach Out and Touch Some VI" that talks about how to invoke Action Engines across process context or across machines.
Back in LV 6i RT it was THE WAY to control RT application over a network. It has fallen out of favor (for no good reason aside from one has to think a bit to use it) being replaced by network shared variables Network streams etc. But is still works and in your case is a bit simpler since you can just use "local Host".
Mark the AE as served and enable VI server and you should be good to go.
Have fun!
Ben