NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing IP address at runtime

Hi

I am working with NI SOM development kit, and I am now using web services to connect to a web page which is accessed via a browser by giving the IP address. I am able to connect to SOM via ethernet (from LAN) and usb cable with different IP address, hence I have two exes with web service, one corresponding to each IP. Everytime I want to use the other IP, I have to connect my PC to the system, go to the corresponding SOM target and run that exe as startup. See the attached pic, where both the IPs point to the same SOM.

Is there any method to select the SOM IP during runtime? Atleast by accessing the console?? I came across this page, in which you programmatically disable any of your network adapter. Even if this method works, under which target can I make an exe?

Thanks

Arya

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

Can we programatically change it with some commands using System Exec VI by entering into OS?

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

Changing IP on the fly programmatically is doable using the System Config API, see the discussion here for eaxmple:

https://decibel.ni.com/content/thread/27856?tstart=0

Message 3 of 3
(2,887 Views)