How can I programmatically configure "Packet Output" and "Packet Input" blocks from the SLDRT toolbox?
1 次查看(过去 30 天)
显示 更早的评论
I have created a custom Simulink library with blocks that interface with external hardware via USB serial using the "Packet Output" and "Packet Input" blocks from the SLDRT toolbox.
I would like to set the COM port and baudrate on model startup using a callback that will query the available serial ports and configure the packet blocks appropriately.
I have investigated usage of the find_system and set_param functions but I cannot figure out how to acess the properties representing COM port and baudrate.
Any help or guidance would be greatly appreciated.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Target Computer Setup 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!