LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get list of services from NI service locator

Solved!
Go to solution

If you have the name of a service, you can open up a TCP connection to it from a remote target. The NI Service Locator can resolve the name into the port to connect on. 

 

Is there a way to query the remote target for a list of all services in the NI Service Locator?

 

In many cases I have more than one LabVIEW application running on a computer. Each will start up a listener with a service name. I'd like to be able to query the NI Service Locator to see what applications are running. I don't want to rely on knowing the service names because the number of apps and their service names changes from system to system.

0 Kudos
Message 1 of 3
(2,288 Views)
Solution
Accepted by topic author wrkcrw00

http://<IP-Address>:3580/dumpinfo

 

For example, sue http://localhost:3580/dumpinfo to get the list of active services on your local computer or use http://192.168.1.100:3580/dumpinfo to get the list off the computer with the IP address of 192.168.1.100. If you do this from within a VI will will need to write a parser that can parse the HTML response.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 2 of 3
(2,269 Views)

Excellent, that works. Thanks. Now, parsing that return will be fun...

0 Kudos
Message 3 of 3
(2,257 Views)