parsim does not appear to recognise Enumerations

4 ビュー (過去 30 日間)
Michael O'Brien
Michael O'Brien 2019 年 10 月 29 日
回答済み: Rahul Kumar 2019 年 11 月 8 日
I'm getting parsim up and running in my environment (where I have predefined Enumerations).
When I run 'sim' then the Enumerations are recognised.
When I run 'parsim' (even only for a single iteration) then the Enumerations are not recognised.
For Example:
Invalid setting in 'End_to_End_TB/Data Type Conversion22' for parameter 'OutDataTypeStr'.
'Enum: myEnum' does not resolve to a valid data type for parameter 'OutDataTypeStr' in 'End_to_End_TB/Data Type Conversion22'.
Cannot register enumerated data type because value specified is not a class.
  2 件のコメント
Rahul Kumar
Rahul Kumar 2019 年 11 月 1 日
Hi Michael,
Most likely, you will need to attach the m-file where the enum is defined using the 'AttachedFiles' option on parsim.
out = parsim(in, 'AttachedFiles', {'full/path/to/your/enum/file'});
Can you please try that and let me know if that works?
Michael O'Brien
Michael O'Brien 2019 年 11 月 4 日
Hi Rahul,
That worked - thanks for your help with it.
Regards,
Mike

サインインしてコメントする。

採用された回答

Rahul Kumar
Rahul Kumar 2019 年 11 月 8 日
Attach the m-file where the enum is defined using the 'AttachedFiles' option on parsim.
out = parsim(in, 'AttachedFiles', {'full/path/to/your/enum/file'});

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnumerations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by