LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

obtain MAC address!!!

Hi!
I am accessing one of the instrument through LAN. I have defined it's IP address manually so I can access it. But I want to change it's IP address though LAN. I think if I get the MAC address of the instrument without giving IP address so I can do it. I have VI which gives MAC address when input IP address. I don't wanna give IP address. I wanna find instrument from MAC address on LAN.
0 Kudos
Message 1 of 3
(3,286 Views)
I don't think I can help in terms of labview, but you won't be able to search the network directly for a MAC address. You will however, be able to find a list of MAC addresses on the network DNS server.

You may be able to whip up a program which generates a list of the MAC addresses and what IP they been assigned by DHCP (or if they are static IPs) and they refer to that to return an IP address to connect to
_____________________________
- Cheers, Ed
0 Kudos
Message 2 of 3
(3,276 Views)
LabVIEW does not have lowlevel access to network functions.
 
You could use system exec to do a ping sweep of the subnet followed by an arp table listing (arp -a), then parse the resulting output. 🙂
 
If the device supports it, you can then change its IP remotely address via arp -s.
 
Still, I don't quite see the need for all that. Can you explain why you need this?
0 Kudos
Message 3 of 3
(3,258 Views)