LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get information from NI service locator

Hello all,

 

I'm using LV 2012 SP1. I'd like to get information from the NI service locator about the current named TCP services and the ports they are using.

 

The LV documentation says "After you register a service with the NI Service Locator, you can use the Open Application Reference function, the TCP Open Connection function, and the UDP Write function to query the NI Service Locator for the port number associated with a service name you specify."

 

I can't see how to do that. Can anybody help please?

 

Thanks!

0 Kudos
Message 1 of 4
(2,791 Views)

One thing you can check is the following example:

 

  • labview\examples\comm\TCP.llb

It may help explain how to use the NI Service Locator a bit better.  Unfortunately I cannot help you test this due to my LabVIEw version.  Hope this helps 🙂

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
If someone helped you out, please select their post as the solution and/or give them Kudos!
0 Kudos
Message 2 of 4
(2,782 Views)

Thank you!

 

I have looked through that example, but it doesn't contain any information I can see for querying the service locator for information on all running named TCP services. It has pretty standard stuff about creating a named TCP server and client.

 

Maybe I'm missing something?

0 Kudos
Message 3 of 4
(2,776 Views)

Hi,

 

The easiest way to get a list of services that are currently registered with the NI Service Locator is by using your web browser. You can type in http://localhost:3580/dumpInfo? into your web browser to get a ful list of registered services.

 

Hope this helps.

 

Thanks and Regards,

Thanks and Regards,
Supreeth.K

Message 4 of 4
(2,703 Views)