ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
07-12-2007 12:52 PM
07-16-2007 08:13 AM
Hi Patrick,
You can certainly configure multiple ethernet adapters in your RT controller (the port in your 8184 and the 8231). So before we get too tricky with the TCP layer and Open Application Reference, I would first suggest taking a look at this KnowledgeBase. It goes through the instructions on how to use the Advanced Ethernet Settings in Measurement and Automation Explorer to select the primary ethernet device by MAC address.
Hope this helps!
Cheers,
Emilie K | Applications Engineer | National Instruments
07-16-2007 08:53 AM
07-17-2007 10:50 AM
Hi Patrick,
So I would specify the IP address of the adapter you are attempting to communicate with. If you specified a static IP address for the 8231, then you would simply wire this as the input to your TCP or Open Application Reference vi's. If, on the other hand, you are using DHCP to specify the IP address, we can get a little tricky. I'll assume that you know the MAC address of both network adapters, since you verified that you know how to configure multiple adapters in MAX. You can then find out the IP address that is assigned to your network adapter by using the RT Ping Controllers.vi. This sends out a ping to your controller and returns a list of all devices that returned the communication, specifying both the MAC address and the corresponding IP address. So by knowing your MAC address, you can then see what IP address was assigned. Then simply use this as your input to your network communication vi's, as previously mentioned.
I hope this fleshes things out a bit.
Cheers,
Emilie