How to modify the Names in Input and Output tabs of the FMU block from the Command Line/API?
John Williams answered .
2025-11-20
get_param(gcb, 'FMUOutputBusObjectName')
and you can set it with:
set_param(gcb, 'FMUOutputBusObjectName',{'testBusName'})
where you have to use this Cell syntax, otherwise it shows:
"Invalid FMU output bus object name format for block 'fmudemo_vehicAOB/vehicAOB'. Bus object names must be in a cell array format. For example: {'BusOutType1', 'BusOutType2'}."