How to log a block in simulink-model programmatically?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
joe
el 5 de Sept. de 2019
Respondida: Abhisek Pradhan
el 19 de Sept. de 2019
Hi everyone,
is there any way to log a block in simulink-model programmatically
this is how i log signals on and off
selectObj = find_system(gcs,'findall','on','selected','on','Type','line','parent',gcs);
sourcePortArr = get(selectObj,'SrcPortHandle');
set_param(sourcePortArr,'DataLogging','off'); % or set_param(sourcePortArr,'DataLogging','on')
MATLAB R2018b
is there any way like this ?
thank you in advance
0 comentarios
Respuesta aceptada
Abhisek Pradhan
el 19 de Sept. de 2019
Simulink doesn’t support block logging. Rather one can log the signals coming out of the blocks for all required purposes.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Sources en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!