Simscape Asynchronous Machine block doesn't work in accelerator mode with C++

조회 수: 3 (최근 30일)
Shu
Shu 2024년 12월 13일
답변: Samhitha 2025년 2월 26일
The asynchronous machine block doesn't work in in accelerator mode if the language is set to C++
The error looks like this:
This error is easy to reproduce in any model that contains this block. I reproduced it with MATLAB's Three-Phase Asynchronous Machine example. I opened this example with Simulink online and set accelerator mode and language to C++, then I had this error.
It seems that this model still works with C. I have also checked the MingW 64 compiler was properly configured by mex -setup. Please tell me how to solve this issue, or if this block is simply not supported in C++?.

답변 (1개)

Samhitha
Samhitha 2025년 2월 26일
Hi @Shu,
To resolve the error, you should enable Verbose accelerator builds in the model configuration pane and navigate to the Simulink target. For further guidance, you can refer to following documentation:
Additionally, to address the issue with creating the accelerator MEX file, change the mode from continuous to discrete in the Power GUI block.
For more information, you can also check the following MATLAB Answers:
Hope this helps!

카테고리

Help CenterFile Exchange에서 Magnetic Elements에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by