unique Simulink model identifiers

4 次查看(过去 30 天)
Hello all,
When a new model is created in Simulink, is there some unique Identifier also created that can be read ?
Best Regards,
Adrian

采纳的回答

TAB
TAB 2012-7-2
编辑:TAB 2012-7-2
When a model is create, there can be 2 unique identifier for the model:
  1. Model name: This is created every time when a new model is created. This can be changed by the user.
  2. Handle to the model: Every model has a unique number called handle.When the model is created from command line using new_system() function, it returns a handle to the model. When a model already exist, you can open the model and read its handle using get_param('ModelName','handle').
Try
>> mdlh = new_system;
on command window.
----------------------
Is anything else you want ?

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Programmatic Model Editing 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by