LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detecting and Configuring a cRIO over ethernet without an IP Address

All,

 

    Quick question. How can I programmatically connect to the cRIO and configure it's IP address without it being on the current network. IE I'm on a switch or I'm directly connected to it via an ethernet cable. I'd prefer to not have to use the serial port. Thanks for your time!

 

- Ken 

0 Kudos
Message 1 of 9
(4,044 Views)

Hi Ken,

you should be able to see your cRIO in MAX (Measurement and Automation Explorer). There you can set the IP adress, install new software to it and ...

 

Mike

Message 2 of 9
(4,032 Views)

Hi Ken

 

Like Mike said you should be able to see it and make the settings in MAX under Remote Systems

 

Remote Systems.PNG

 

What could give you a problem is if the cRIO has a configuration already, espescially a if it has a strange subnet mask. It shouldn't be a problem, you should see it anyway, but if you can't you can reset it to the default settings using the switches on the front of the controller. Consult the manual for how to set them on your specific model and what the defaul values will be afterwards.

 

Best Regards

 

David

NISW

0 Kudos
Message 3 of 9
(4,021 Views)

If you already know the current IP settings, you can FTP into the controller (Either through MAX or programmatically with the internet toolkit), pull the ni-rt.ini file, modify it, ftp it back, and then reboot the controller.

 

Of course, after doing all of this, it might just be easier to use the IP reset dip switch and set the IP through MAX.

Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
0 Kudos
Message 4 of 9
(4,004 Views)

hi Ken,

 

if you are directly connected  to cRIO unit  you need to use a X over cable, not a direct LAN cable.

 

Russ

0 Kudos
Message 5 of 9
(3,995 Views)

Russ,

 

You are correct, but I just wanted to point out that the newest series of cRIO controllers(9022, 9024) can now use standard CAT5 to connect directly to a computer, as switching is implemented in the controller.  Also, some NIC cards have switching built in as well.

Rob K
Measurements Mechanical Engineer (C-Series, USB X-Series)
National Instruments
CompactRIO Developers Guide
CompactRIO Out of the Box Video
0 Kudos
Message 6 of 9
(3,993 Views)

All,

 

   They key thing I'm looking for here is programatically, IE how can I do this without max? With DHCP, I can do it very easy by broadcasting UDP packets, however I'd like to know the constructs of how MAX itself does it should I be connected directly without a router.

 

Regards,

Ken 

0 Kudos
Message 7 of 9
(3,970 Views)
Does anyone else have more information on this?
0 Kudos
Message 8 of 9
(3,948 Views)

Hi xkenneth,

 

The work arounds posted earlier are the only ones I know of. Programmatically searching for the devices is not possible.

 

Flash

National Instruments
Applications Engineer
0 Kudos
Message 9 of 9
(3,928 Views)