![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1111625/image.png)
How can i get the paths of spesific blocks not in single model but in the .prj file?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
The block can be found with Simulink.findBlocksOfType(sys,type,options) but my problem is how can i manage to find all blocks (e.g all gain blocks in myProj.prj) not in spesific system but in the .prj file?
Thank you in advance for your all help.
0 comentarios
Respuestas (1)
Biral Pradhan
el 30 de Ag. de 2022
I understand you want to find all blocks of any particular type present across different systems, all of which are in a single project. MATLAB provides a search functionality within the project tab. All you have to do is simply search for "gain" and it returns the paths to all the models that have a gain block within it. Upon expanding each path, you can also find the individual gain blocks. The snapshot below shows how it typically looks.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1111625/image.png)
For more information, kindly follow the documentation link provided below:
0 comentarios
Ver también
Categorías
Más información sobre Interactive Model Editing 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!