I am trying to communicate with real-time (RT) computer or xPC target computer using UDP with another non-bkin computer. I know that the IP address of RT computer is 192.168.0.2 when connected to GUI computer via private DEX LAN. I am interested in using the other Ethernet port available on RT computer for communication but can't find out its IP address. Till now I have tried a direct connection between the RT computer and non-bkin computer. I also tried connecting the two computers via a router, but still can't find the IP address. Is there a standard way to set the IP address of real-time computer? Any suggestions are appreciated.
Hi Taruna, I did some searching and found a few references to people trying this with xPC, though I didn't see a specific answer. The implied answer I saw was "use the real-time UDP blocks". These are variants to the UDP blocks found throughout the TDK, they can be found in the library browser under Simulink-Realtime -> Realtime UDP. Effectively, you need to add a Network configuration block and set the IP there along with the slot and port. I don't know what the slot and port off the top of my head, but given a log file from your machine we could figure it out. Once configured, the real-time UDP send and receive blocks should work - though I have not tried this myself. Having said all of that, there may be an easier solution that just makes use of the existing network connection. 1. Set the non-bkin computer's IP address to something on the same subnet as the robot computer (ex 192.168.0.55) 2. Obtain a gigabit network switch (must be a switch, not a router) 3. Connect all 3 computers to the switch 4. Add UDP send and receive blocks that reference the non-bkin computer's IP. Cheers! Duncan
Please login or Register to submit your answer