Info

此问题已关闭。 请重新打开它进行编辑或回答。

Update C++ function and simulink

1 次查看(过去 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