LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Obtain IP address of instrument on LAN

I have an instrument that communicates with my LV driver over Ethernet. The IP address of the instrument is generated dynamically. If I go to Measurement & Automation Explorer and right click on Devices and Interfaces, select Create New, select VISA TCP/IP Resource, select Auto-detect of LAN Instrument, it dsiplays the Instruments IP address. How can I do this programmatically in LabVIEW? Also, how can I associate the Host Name of the instrument with the IP address returned?

 

Thanks!

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

Hello Jim

 

Have you tried using the Real-Time System Replication VIs

 

You can get it here: system Replication Tools
http://digital.ni.com/express.nsf/bycode/ex6hzw

 

You can then use the Functions>>Real Time>>RT Utilities>>Get Target Info (IP).vi to get a cluster of various information about the controllers network state.

 

This will dynamically give you the IP of the controller it will also work if you assigned a static one.

 

Good luck!

 

Message 2 of 2
(4,176 Views)