Hi all i have a simulink model which consists of 20 to 30 scopes at diffrent subsystems. i would like to open the specific scopes ( may be 3 to 4 scopes at a time) automatically, once simulation time is completed.
my question is
1. is it possible to open the specific scopes automatically?
thanks to you for spending your valuable time.
Thanks & Regards venkat

1 comentario

K E
K E el 10 de Ag. de 2012
Just a head's up, a lot of scopes will slow your simulation; see this blog post.

Iniciar sesión para comentar.

 Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 9 de Ag. de 2012
Editada: Azzi Abdelmalek el 9 de Ag. de 2012

2 votos

assume
ModelName='fic'; % your simulink model name
SubsystemName='sub1'
ScopeName='scope1'
% to open this scoppe :
open_system('fic/sub1/scope1')
% you can do the same to open any system or subsystemem
% to close it
close_system(ModelName)

5 comentarios

Venkatapathi
Venkatapathi el 9 de Ag. de 2012
Hi Mr.Azzi Abdelmalek
your solution is working...
Thank you very much
venkat
TAB
TAB el 9 de Ag. de 2012
To open the scopes automatically when simulation is completed, add above code in model's StopFcn callback.
Venkatapathi
Venkatapathi el 9 de Ag. de 2012
Hi TAB..
iam able to open the scopes automatically by using StopFcn callback..thanks
Slimeni Omar
Slimeni Omar el 19 de Feb. de 2019
hi
please i would like to know
how to impliment a scope in simulink model with matlab command ,just from the librery browsers
Rohail Bootwalla
Rohail Bootwalla el 21 de Mayo de 2022
Did you get an answer?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Productos

Preguntada:

el 9 de Ag. de 2012

Comentada:

el 21 de Mayo de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by