필터 지우기
필터 지우기

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