ERROR: Invalid baud rate supplied (when using external mode in Simulink)
2 次查看(过去 30 天)
显示 更早的评论
Using Matlab 2016a (on Linux) and Simulink with a homegrown external target with a CortexM4 processor.
When interfacing with a serial interface with 921600 and setting MEX-file arguments to: 1 /dev/ttyUSB0 921600 we get:
ERROR: Invalid baud rate supplied (921600)
But using:
>> s=serial('/dev/ttyUSB0','BaudRate',921600);fopen(s);
shows that matlab can set the baudrate to this value as shown with the command "stty -F /dev/ttyUSB0 speed".
How can I set the baudrate to this value in Simulink?
Thanks in advance, Sietse
PS. 115200 as baudrate works fine.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!