Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Update C++ function and simulink

조회 수: 2 (최근 30일)
Ralf
Ralf 2014년 4월 16일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi, I have 2 questions. When i only change the C-code it will not be updated in the simulation?
Example:
int GetADC()
{
return 10;
}
Next time I change 10 to 5 and when I rerun the model it still return 10. It only update when I change some thing in the stateflow/Simulink model.
Is it possible to access the Matlab workspace or Simulink variable from inside the c function?
Whit kind regards,
Ralf

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by