Programmatically control input/output visibility checkboxes for FMU block in Simulink through script
25 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Ruchit
il 16 Ott 2025 alle 14:29
Hi everyone,
When I import an FMU into Simulink, I can see all the inputs and outputs listed inside the FMU block parameters dialog. Each signal has a visibility checkbox that can be manually checked or unchecked to show or hide the corresponding port on the block.
I would like to automate this process — instead of manually checking/unchecking the visibility boxes, I want to control them through a MATLAB script.
Is there a way to programmatically set the visibility of these FMU input/output ports in Simulink? For example, using a command like set_param or by accessing parameters of the FMU block?
Thank you.
0 Commenti
Risposta accettata
Tridib
il 29 Ott 2025 alle 10:27
To change a dialog parameter value programmatically, you can first use the "get_param" function to find out the exact parameter names for the block. This will show you all the dialog parameters that can be modified using "get_param" and "set_param". If you find parameters related to port visibility, you can try changing their values between 'on' and 'off' with "set_param".
For more details, you may find these related MATLAB Answers helpful:
Hope this helps!
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su RF Blockset Models for Transceivers in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!