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 件)

カテゴリ

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

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by