Effacer les filtres
Effacer les filtres

what is the script for highlight to source of a line when i know handle of a line.

6 vues (au cours des 30 derniers jours)
what is the script for highlight to source of a line when i know handle of a line
  1 commentaire
Jan
Jan le 24 Juin 2013
I do not understand the question. What is "highlight to the source"?

Connectez-vous pour commenter.

Réponse acceptée

Sreeram Mohan
Sreeram Mohan le 25 Juin 2013
model = 'your_model_name'; open_system(model);
%Select the line whose source has to be traced port = get_param([model '/Out1'], 'PortHandles'); % in this case out1 is an %output block in a model lineS = get_param(port.Inport, 'Line'); set_param(lineS, 'Selected', 'on');
%Highlight to source get_param(lineS, 'TraceSourceOutputports');
%If you need to find the source block. may be use find_system to find the colors or any other property to get to the block name.
%hope this helps. %% sreeram
  3 commentaires
omar Elkawokgy
omar Elkawokgy le 11 Jan 2018
Thanks a lot I have been searching for this for a long time :)
Laurey ZOBIKILA
Laurey ZOBIKILA le 22 Août 2018
What is the line command to find the source block?

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by