From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Communication between webservice and main application on target

In the case where you have a built LabVIEW application on a target and you want to have a web service interface via HTTP, what is the current best method for communicating between the web service and the application? 

here's a simple diagram to show what I'm referring to in case the above isn't clear...

 

p27_0-1619118558458.png

(the yellow arrows are the channels in question)

 

Is hosting a TCP server in the app (and having methods msg it as a client) the best option currently?  I have that working in a simpler app I previously wrote but I just wanted to ask if there's a cleaner or better way to do it.  I would like to have the ability to support message queries between the two...

 

thanks

 

 

0 Kudos
Message 1 of 5
(814 Views)

I think TCP is a good way to go, just make sure you manage port selection- an ini file of some sort would be a good idea.

 

 

0 Kudos
Message 2 of 5
(750 Views)

Thanks!

0 Kudos
Message 3 of 5
(749 Views)

you're welcome 👍

0 Kudos
Message 4 of 5
(748 Views)

you could also use rabittmq if you wanted to get fancy...

0 Kudos
Message 5 of 5
(704 Views)