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 CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by