Create my custom type for S-function input (from Ada to Mex purpose)
조회 수: 2 (최근 30일)
이전 댓글 표시
Hello,
I am currently working on a Ada-file conversion to a Mex file, in order to use it inside a S-Function block.
Do you know how to declare my custom type for ssSetInputPortDataType function ? (I want to create a enumeration type for instance)
In this documentation (https://mathworks.com/help/simulink/sfg/ssgetinputportdatatype.html), it says : "Integer values of 9 or greater represent custom data types such as fixed-point types, bus types, and enumerated data types. The meaning of each value depends on the number and kind of custom data types that you use in a model.", but I can't find where to edit it.
Thank you
댓글 수: 0
답변 (1개)
Ramtej
2023년 9월 7일
Hi Danny,
I understand that you are trying to declare a custom data type for Input port in S-Function block.
You can declare a custom data type using the function "ssRegisterDataType" inside your initialization function.
Refer to the documentation below for the detailed instructions on how to configure custom data types.
Link to the documentation: https://in.mathworks.com/help/simulink/sfg/custom-data-types.html
Hope this resolves your query!
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!