Get names of current Simulink block input signal
Mostra commenti meno recenti
If i use gcb, i get the name of the currently selected simulink block. What I also need is the names of the block inputs and outputs. Is there anyway to retrieve these?
The block that I am checking is not yet connected to any other blocks. So its a subsystem, and in the subsystem the ports are defined. But the subsystem is the only block in the simulink .mdl. I'm now trying with find_systems, but cant yet get the right answer.
I want to automatically check whether all inputs that are supposed to be there are in fact there.
Risposta accettata
Più risposte (1)
Sreeram Mohan
il 1 Ago 2011
1 voto
Hi Joris,
You could try
a = get_param9gcb, 'portconnectivity') this should return the handles for the srcblocks and destination blocks !
--sreeram
1 Commento
Joris
il 1 Ago 2011
Categorie
Scopri di più su Schedule Model Components in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!