How to modify the Names in Input and Output tabs of the FMU block from the Command Line/API?

Technical Source
2 min readSep 30, 2021

--

How to modify the Names in Input and Output tabs of the FMU block from the Command Line/API?

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

The name fields listed under the “Input” and “Output” tabs cannot be changed via the Command Line/an API method for the FMU file itself. The FMU block takes the names of the signals within the buses fed into the block and they are baked in at the time the FMU block is created. The FMU block must be fed the buses that appear in the Input and Output tabs.

Since it is possible to change this in the FMU block mask for the Simulink instance, you can use the following API to change it in the mask:

To get the actual information, use this command:

get_param(gcb, 'FMUOutputBusObjectName')

and you can set it with:

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet