How to distinguish Simscape and Simulink lines in a program?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Aseem Routray
il 3 Dic 2019
Risposto: Joel Van Sickel
il 18 Ago 2020
I want to differentiate simscape and simulink lines in my simulink model, so that I can obtain the line handles of the simscape wires only. When I am using find_system, I am getting the linehandles of all the lines and am unable to differentiate between the two.
0 Commenti
Risposta accettata
Joel Van Sickel
il 18 Ago 2020
Hello Aseem,
unfortunately, there is not an object parameter that easily distinguishes between the types of lines. However, you could loop through the lines and use the destBlk = get_param(line,'DstBlockHandle'); and analyze that block to see if it is a simscape block or a simulink block. That would let you know if that particular line was a simscape line. You could also look at the source block as well.
Regards,
Joel
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Nonlinear Operators 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!