Exporting C++code to Visual Studio using the Simulink model yields incorrect results
1 回表示 (過去 30 日間)
古いコメントを表示
I have a Simulink model that includes the Three Phase Breaker module, Three Phase Source module, and Switch module. After exporting C++code using Simulink coder and running it in visual studio 2022, the results are inconsistent with those running in Simulink.The Matlab version used is 2023a.
2 件のコメント
回答 (1 件)
UDAYA PEDDIRAJU
2024 年 6 月 4 日
Hi Defeat,
Can you try the following solutions?
- Use a parameterizable Three Phase Source block to define voltages as parameters adjustable in Visual Studio.
- Utilize an external signal source (function/signal) for phase voltages, allowing control in Visual Studio.
- For advanced needs, consider a custom Simulink Coder block for dynamic voltage control
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!