parsim does not appear to recognise Enumerations
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Michael O'Brien
el 29 de Oct. de 2019
Respondida: Rahul Kumar
el 8 de Nov. de 2019
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 comentarios
Rahul Kumar
el 1 de Nov. de 2019
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?
Respuesta aceptada
Rahul Kumar
el 8 de Nov. de 2019
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Enumerations en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!