LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

obtain ip from mac address

I have an LXI instrument that is set to DHCP AutoIP. In other words, each time the unit is powered up it could have a different IP address. If I know the permanent MAC address of the the instrument can I use LabVIEW to determine the IP address?

0 Kudos
Message 1 of 3
(3,064 Views)

Did you try a search?

 

get IP using MAC address

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

Getting IP address from MAC programatically is bit hard to program as ARP-level programming is needed.  If one of the following condition is applied, you dont have to convert MAC to IP.

 

If you can change router or DHCP server configuration, you may be able to fix the IP address which will be always assigned to specific MAC address.  This mean, the LXI instrument will have always the same IP address even if DHCP enabled.

 

If your LXI instrument supports hostname capability, you can VISA Open with hostname-based VISA address rather than IP address.  This mean, you can use TCPIP::<hostname>::INSTR.  You can use the same VISA address regardless what IP address is being assigned.

 

 

0 Kudos
Message 3 of 3
(3,000 Views)