Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I set IP address from the console

Hello,

 

I have several cRIOs and I want to change their static IP via the console. What are the commands I need to execute to set the IP address on the cRIO via the serial connection?

 

Thanks,

Patrick

0 Kudos
Message 1 of 4
(7,080 Views)

Hi Patrick,

 

You cannot control a cRIO with the serial port, it is used only for reading the status of the controller.

 

Otherwise you can set the IP of a cRIO from:

  • Measurement and Automation Explorer (MAX) by clicking on the targe and selecting "Network Settings"
  • System Configuration VIs
  • FTP, open a session and update the "ni-rt.ini" file.

 

Will one of these options work for you?

 

Regards,

Craig H. | CLA CTA CLED | Applications Engineer | NI Employee 2012-2023
0 Kudos
Message 2 of 4
(7,049 Views)

I would like to change them from MAX, but I keep having trouble with MAX detecting them, even when my laptop is in link-local mode with 169.254.x.x and 255.255.0.0. So far I have had to go into the console to see what IP the cRIO is creating for itself and then I have to manually add the device in MAX using the address. I was hoping that I could cut out a step using the console to do a simple "ifconfig" (like Linux). It looks like I need to continue my method on the remainder of my cRIOs until I get their IPs to my desired static setting.

0 Kudos
Message 3 of 4
(7,041 Views)

Patrick,

 

Make sure to check all the steps in this documentation: http://digital.ni.com/public.nsf/allkb/abe4bc247e8ac9bc8625734e005cab42?OpenDocument

 

Primarily make sure your firewall is disabled. MAX should be able to discover devices on your subnet easily.

 

Also, newer versions of the NI-RIO driver are generally better at discovering devices.

RIO Driver Search: http://search.ni.com/nisearch/app/main/p/bot/no/ap/tech/lang/en/pg/1/sn/catnav:du/q/rio/

 

The latest version at this time is NI-RIO Device Drivers August 2012.

Craig H. | CLA CTA CLED | Applications Engineer | NI Employee 2012-2023
0 Kudos
Message 4 of 4
(7,034 Views)