Serial communication between Simulink and virtual COMM port

1 次查看(过去 30 天)
Hi
I want to send Serial data from Simulink to a program that will run on the same linux machine. So i installed socat and type the following command
$ socat -d -d pty,raw,echo=0 pty,raw,echo=0 socat[28162] N PTY is /dev/pts/6 socat[28162] N PTY is /dev/pts/7 socat[28162] N starting data transfer loop
However simulink's serialSend block doesn't list these virtual serial ports in it's dropDown menu I even tried symbolic linking one of the virtual ports to /dev/ttyUSB0 But not luck. Simulink serialSend refuses to detect it.
Why?
I am able to send data to Arduino without a problem

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Run on Target Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by