how do I call from simulink a C function with many pointer arguments, and read such values as well?
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi, my software is partly based on simulink applications and part in C code. The simulink calls C functions that usually return 1 output.
Recently, I've got C functions (from another development team), which 'return' a number of pointers as arguments. Example:
u16 NewSystemFunction (u16 *arg_1, s32 *arg_2, u16 *arg_3);
The question is, how do I call NewSystemFunction from Simulink and read arg_1, arg_2, arg_3 values?
Thanks in advance
댓글 수: 1
Christoph Wellnhofer
2023년 6월 14일
편집: Christoph Wellnhofer
2023년 6월 14일
Maybe the following article is of help to you:
section Pass Stateflow Structures to Custom Code
One hint: You need to set the language of the stateflow chart to C.
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!