07-02-2010 10:35 AM
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!
07-06-2010 02:40 PM
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!