Insert a detector block in simulink
Afficher commentaires plus anciens
Hi,
I have a simulink model; in this model I should insert, in automatic way, a detector block.
I have written this code line:
hDetector=add_block('Simulink Design Verifier/Temporal Operators/Detector',[blockName 'Detector'])
but matlab gives me this error: "There is no block named 'Simulink Design Verifier/Temporal Operators/Detector".
Where am I wrong? I think I am wrong to call the library in add_block function, is correct?
Thanks in advance
Andrew
Réponse acceptée
Plus de réponses (1)
Azzi Abdelmalek
le 28 Jan 2013
Modifié(e) : Azzi Abdelmalek
le 28 Jan 2013
Create a file librairy called for example lib1, then copy all the blocks you need from ' Temporal Operators ', then add this code
load_system('lib1')
add_block('lib1/Detector',[yourmodelname '/Detector1'])
Catégories
En savoir plus sur Modeling dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!