Using multiple MATLAB level 2 S-functions in one Simulink model?

조회 수: 5 (최근 30일)
Pravin Wedage
Pravin Wedage 2018년 10월 15일
편집: Pravin Wedage 2018년 10월 15일
I have a model where I have simulated the response of drone using an S-function. I am trying create a simulation where I have multiple drones simulated in one Simulink model, but the response is not as expected; somehow if I put two or more S-functions in, all of them behave unexpectedly. Uncommenting all but one S-function will produce the right response for the specific S-function.
I am using MATLAB Level 2 S-functions. I am wondering if the S-functions are sharing variables, or if anyone else has experienced something similar when using S-functions.
Reading some documentation, I was under the impression that this is not a complex task, so I am wondering where specifically I should look for what could be causing this issue. Is using multiple functions something that needs to be declared explicitly in the s-function?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by