How do I use ssCallSimulinkFunction?
조회 수: 3 (최근 30일)
이전 댓글 표시
Good day,
I want to create an S-Function that calls one or more Simulink Function blocks. I found the function “ssCallSimulinkFunction”, but it’s unclear for me how to use it, specifically the execInArgs and execOutArgs arguments.
Can you provide an example of the use of ssCallSimulinkFunction() and how to define the execInArgs and execOutArgs arguments?
Thanks.
댓글 수: 0
답변 (1개)
Suman
2024년 7월 29일
Hi Arjan,
The execInArgs and execOutArgs are the inputs to the function being called. These are simply variables of type _ssFcnCallExecArgInfo which is a pointer to a struct type, on which you have to set the dataPtr and dataSizePtr. You can see this example here.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink Functions에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!