This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Troubleshoot Build Error for Accelerator Mode

I get a build error when building a model in accelerator mode or rapid accelerator mode when the model contains Simulink Real-Time blocks (for example, model blocks that represent hardware).

What This Issue Means

Simulink Real-Time does not support accelerator mode or rapid accelerator mode simulation of models with blocks that represent hardware. For example, if you open the xpcEnetDemo1Rx model, change the Simulink mode to rapid accelerator, and run the model, Simulink displays this error:

### Build procedure for model: 'xpcEnetDemo1Rx' aborted due to an error.
Unable to build a standalone executable to simulate the model 
'xpcEnetDemo1Rx' in rapid accelerator mode.

This error occurs because accelerator mode and rapid accelerator mode produce compiled code that runs on the development computer, not on the Simulink Real-Time target computer. Any blocks that access hardware report a build error if you compile them by using accelerator mode or rapid accelerator mode.

Try This Workaround

Change the simulation mode to normal mode or external mode.

Related Topics