Is it possible to input all my previous T 91 aircraft data from C++ onto a model on simulink to see how the aircraft behaves? If possible, which model should i use?
조회 수: 2 (최근 30일)
이전 댓글 표시
I am looking for a model on Simulink where I can input all my previous data for the T-91 aircraft. Which is the best model to use?
댓글 수: 0
답변 (1개)
Michelle Wu
2017년 2월 17일
I am assuming that you are looking to include existing C++ code in Simulink. There are three ways which allows you to integrate C++ code into Simulink:
1) You can integrate existing C (or C++) functions, such as device drivers, lookup tables, and general functions and interfaces, into Simulink models by using the Legacy Code Tool. Please refer to the following documentation for more information:
2) You can manually write a wrapper S-function to call external C++ code. The procedure is very similar to writing a wrapper function in C. Please refer to the following doc page:
3) Another option is to use Stateflow custom code interface. You may refer to the following documentation:
There is also an example available demonstrating how to use Stateflow to integrate external code into a model:
참고 항목
카테고리
Help Center 및 File Exchange에서 Aerospace Applications에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!