LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Web Service not accessing my actor engine

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. 

0 Kudos
Message 1 of 2
(1,951 Views)

@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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 2
(1,913 Views)