MATLAB Answers


Error in the incremental build with a S-function on Real Time Windows Target

Asked by Walsandro
on 10 Aug 2012

I'm trying to use a S-function with the Real Time Windows Target, but when I click on the "incremental build" an error occurs. An error window in the simulink shows the following message:

Error building Real-Time Workshop target for block diagram 'Sfunctionteste'. MATLAB error message: Error(s) encountered while building model "Sfunctionteste".

An error message appears on the matlab console: "cannot find the 'dobro'.obj". 'dobro' is the name of the c function placed in the S-function block. Somebody can help me?


on 10 Aug 2012

I'm using the rtwin compiler.

on 10 Aug 2012

When I use the S-function block with the same c function in a model without real-time windows target blocks the simulation runs correctly. This error only appears with a place an Analog Input block for example.

1 Answer

Answer by Kaustubha Govind
on 10 Aug 2012
Edited by Kaustubha Govind
on 10 Aug 2012
 Accepted answer

If you're using R2008b or R2009a, this might be due to Bug#522933 - the Bug Report has a patch.

  1 Comment

on 11 Aug 2012

Worked! Thank you

Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!