Unable to build standalone executable in rapid accelerator mode--Unable to find VarGroupIdx within the GlobalBlockOutput scope
6 次查看(过去 30 天)
显示 更早的评论
Here's the specific error message:
Unable to build a standalone executable to simulate the model MODEL in rapid accelerator mode.
Caused by:
- Error: File: C:\Program Files\MATLAB\R2024b\rtw\c\tlc\lib\blkiolib.tlc Line: 2886 Column: 62 Unable to find VarGroupIdx within the GlobalBlockOutput scope
The offending section of code from blkiolib.tlc is:
%% Function: SLibGetBlockOutputIdentifierFromRecord ================================================
%% Abstract:
%% From the .rtw file BlockOutputs Record get its base identifier in the
%% block I/O structure to be accessed from within the accessSysIdx
%%
%function SLibGetBlockOutputIdentifierFromRecord(bo, accessSysIdx) void
%assign varGroup = ::CompiledModel.VarGroups.VarGroup[bo.VarGroupIdx[0]]
%return SLibCG_GetVarGroupElementPath(bo.VarGroupIdx, accessSysIdx, ...
System[varGroup.SysIdx].CrossNoArgFcnBound)
%endfunction
I'm not sure where to begin here. the MODEL.rtw file has GlobalBlockOutput sections, some of which have VarGroupIdx members and some of which do not. Is there a way to narrow down what's getting tripped over here?
0 个评论
回答(1 个)
Kautuk Raj
2025-5-7
You are receiving this error because Simulink Real-Time does not support accelerator mode or rapid accelerator mode simulation of models with blocks that represent hardware.
Please refer to this MathWorks documentation page for more information: https://in.mathworks.com/help/releases/R2024b/slrealtime/ug/troubleshoot-build-error-for-accelerator-mode.html
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Acceleration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!