07-13-2010 07:59 AM
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?
07-13-2010 01:29 PM
07-22-2010 08:16 PM - edited 07-22-2010 08:16 PM
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.