Get expected DataType for Inherit:auto port
7 次查看(过去 30 天)
显示 更早的评论
Hi,
I am trying to find out if there is a way programatically to check which is the expected data type of a port which is normally defined as Inherit:auto. The only parameter which lists the data type I know of is "OutDataTypeStr" which in such cases only says "Inherit:auto". Is there a programatic way to apply the inheritance rules and check what is the expected type for this port?
0 个评论
采纳的回答
stozaki
2020-8-20
Hello Iliya,
Simulink blocks output data type are determined when you compile your model.
To get the data type property at that time, pose the model with the model compiled and get the property. After getting the property, terminate the model compilation.
I have attached a sample program, so please refer to it.
Regards,
stozaki
5 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Event Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!