10-07-2009 09:23 PM
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
10-08-2009 12:47 AM
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
10-08-2009 03:29 AM
Hi Ken
Like Mike said you should be able to see it and make the settings in MAX under Remote Systems
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
10-08-2009 10:56 AM
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.
10-08-2009 12:51 PM
hi Ken,
if you are directly connected to cRIO unit you need to use a X over cable, not a direct LAN cable.
Russ
10-08-2009 12:58 PM
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.
10-08-2009 10:48 PM
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
10-12-2009 04:49 PM
10-13-2009 12:41 PM
Hi xkenneth,
The work arounds posted earlier are the only ones I know of. Programmatically searching for the devices is not possible.
Flash