How to find enumerated constant block inside the model using command line?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Arjun Singh
am 17 Mär. 2016
Bearbeitet: Fangjun Jiang
am 17 Mär. 2016
I am not able to find enumerated constant block using find_system function.When i try to find enumerated constant block using find_system, i get a empty cell array.Can anyone please help me with it.
I am using following command gh=find_system('testmodel','BlockType','Enumerated Constant')
testmodel is the name of my model.
0 Kommentare
Akzeptierte Antwort
Fangjun Jiang
am 17 Mär. 2016
There is no "Enumerated Constant" block type. It is a masked SubSystem block. You need to use:
find_system('testmodel','MaskType','Enumerated Constant')
3 Kommentare
Fangjun Jiang
am 17 Mär. 2016
Bearbeitet: Fangjun Jiang
am 17 Mär. 2016
There are "Type", "MaskType", "PortRotationType", "IOType", "BlockType", "PaperType", "CompiledPortDataTypes", etc. I don't think there is a fixed set. What you need to know is the block properties. Please search for "Common block properties" in the document to find it out.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!