From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

CRio inside school network, IP adresses are changing and causing problems

Solved!
Go to solution

Hello

 

We have about five CRio modules in our laboratories, and they are connected via ethernet to the our school network. We need to use all those CRios from about 3-5 different computers. 

 

We have a problem that due to internet security IP addresses are changed during some time period, i.e. every second month. We have always to find out from the Measurement and automation explorer what is the IP, and then change it to the application (.VI), and then compile new .exe file and then copy it to all the other computers. 

 

Is there easy way to keep the CRio IP at the same (can we "lock" it?) or is there easy way to do it inside the .VI, without to do it every time again and again to all the computers.

0 Kudos
Message 1 of 8
(3,170 Views)

VilleH,

 

It sounds like you are using shared variables to communicate with your cRIO's?  If so, then you can write your code such that this can be done.  See this post.

0 Kudos
Message 2 of 8
(3,161 Views)

If your network properly synchronizes DHCP leases with your DNS server, you should be able to refer to your controllers using their hostname instead of an IP address. Alternatively, you could talk to your network administrators about assigning static IP addresses for your cRIO controllers.

 

-Jason S.

0 Kudos
Message 3 of 8
(3,141 Views)

Jason;

 

Could you please give an example how/where I can change by using hostname instead IP address?

0 Kudos
Message 4 of 8
(3,135 Views)
Solution
Accepted by topic author VilleH
In your LabVIEW project, you can right-click on the controller, select properties, then change the IP address to the hostname. If you use the IP addresses in your VIs, you should be able to simply replace the IP address with the hostname in most cases. Jason S.
0 Kudos
Message 5 of 8
(3,132 Views)

Thanks. I will try to get this one working, this is what I was looking for. 

0 Kudos
Message 6 of 8
(3,127 Views)

Hi

 

I could not make it work. It does not connect if I change the DNS name ie. to "HEATEXCHANGER". 

0 Kudos
Message 7 of 8
(3,115 Views)

You should probably try to ping the hostname from a command prompt, to see if your network properly resolves the address. Whether this works or not depends a lot on how the school's DNS and DHCP interact. If you are having issues I would talk to your networking people to see whether they expect devices using DHCP to be resolveable using DNS. If not, you should probably pursue static IP assignments for these devices.

0 Kudos
Message 8 of 8
(3,109 Views)