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