VE_KVK Posted December 17, 2009 Report Share Posted December 17, 2009 Hi My application requires to have a predetermined IP address for the user's PC. Is it possible to set the IP address , Subnet mask of a PC programatically using Labview? Pl Help Thanks VE_KVK Quote Link to comment
Rolf Kalbermatter Posted December 17, 2009 Report Share Posted December 17, 2009 Windows? There are probably several options: .Net, ActiveX, Windows API and command line tool Personally I would go for the comamnd line tool or Windows API aproach, but the command line tool is the easier to explain. To start a command line tool you use the System Exec VI in LabVIEW and pass it a string "cmd <command>" The command line tool you want to use for this would be "netsh" netsh interface ip set address "Local Area Connection" static 192.168.0.1 255.255.255.0 This would set the IP address of the network adapter "Local Area Connection" to static IP 192.168.0.1 with a subnet mask of 255..255.255.0 netsh has many more options and has an involved command menu structure, but you can find lots of information on the net how to use it. 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.