フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Simulink Code Generation with External C Code

1 回表示 (過去 30 日間)
Bartosz Soltowski
Bartosz Soltowski 2019 年 6 月 10 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi,
I use Simulink code generation for C2000 systems. I have developed my model in simulink to control power flows using basic power converters.
I want now to send some data to a cloud using GPRS data. To do so, I created a C code with different AT commands. Everything works well.
I am now trying to integrate power flows control loops with the GPRS data sender into one system. Unfortunately, as soon as I start executing loop with external C code (for GPRS), I start having problems. I use System Update block for this. As soon as my system starts executing this C code, other processes (ADC reading, PWM control) stop working for as long as the external C code execution is terminated (sometimes few seconds). Within this period all my voltages collapse.
Does anyone know how to obtain parallelisation with external C code? Such that my voltage control tasks have higher priority than external C code?

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by