Simulink Real Time ethernet communication with exteral pc

6 ビュー (過去 30 日間)
Chiara landi
Chiara landi 2018 年 6 月 5 日
回答済み: Jon Lobo 2018 年 7 月 3 日
my robot controller runs on Simulink Real-Time, but I would like to communicate with an external computer in real time to get robot's state. I know that the "Real-Time Transmit/Receive Ethernet" blocks work perfectly when both Target pcs run Simulink Real time. In my scenario, however, the external computer runs ROS on Ubuntu and I created a ROS node to handle the tcp/ip socket communication. Is there any Simulink Real-Time module that I can use?

回答 (1 件)

Jon Lobo
Jon Lobo 2018 年 7 月 3 日
Hi Chiara,
Have you tried using the TCP/IP blocks in Simulink Real-Time? You may also need to use the Byte Pack and Unpack blocks to format/parse the data you are sending/receiving.
See: TCP

カテゴリ

Help Center および File ExchangeDevelopment Computer Setup についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by