Unable to build standalone executable in rapid accelerator mode--Unable to find VarGroupIdx within the GlobalBlockOutput scope

9 views (last 30 days)
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?

Answers (1)

Kautuk Raj
Kautuk Raj on 7 May 2025
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.

Categories

Find more on Acceleration in Help Center and File Exchange

Products


Release

R2024b

Community Treasure Hunt

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

Start Hunting!