Cannot locate RTW S-function from Simulink Coder: R2010a

2 visualizaciones (últimos 30 días)
Jared
Jared el 4 de Jun. de 2012
I am using Simulink Embedded Coder and generating a SIL block by selecting "Create SIL Block" in the Configuration/Real-Time Workshop/SIL and PIL Verification pane. I have selected an ARM Compatible device in the Hardware Implementation pane and the ert.tlc target file. I am running R2010a on Win7, 64 bit machine, MSVC 2008 SP1 compiler.
Building the model with these settings produces a new Simulink model, let's call it "sil_block.mdl" with a RTW S-Function block containing an s-function that wraps the generated code and should enable me to run the generated code in Simulink. I copy the s-function block to a different Simulink model that serves as a test harness. The test harness model runs on the computer with the RTW licenses. I then send all the generated folders, files, and Simulink models to a colleague (different computer) so they can work with the generated code. These computers do not have the RTW license.
When attempting to run the model with the RTW S-Function I receive the error: Error in S-function "VerifyBuild/RTW S-function": S-Function 'VerifyBuild_sf' does not exist.
However, the s-function is on the path, in fact it is in the pwd, and Simulink can find the source code when I look under the mask of the s-function and select "edit". However, when I build a model dependency manifest report, it does not find VerifyBuild_sf or rtwsfunc.
Question: Do I need the RTW license to run the generated RTW S-Function? Any thoughts on the problem?
Thanks in advance, Jared

Respuestas (1)

Kaustubha Govind
Kaustubha Govind el 4 de Jun. de 2012
Perhaps your colleague is running on a 32-bit machine or MATLAB installation? MEX-files are platform specific (basically, they are DLLs), so you cannot run a 64-bit S-function MEX-file on 32-bit MATLAB.
  2 comentarios
Jared
Jared el 5 de Jun. de 2012
Kaustubha,
Thank you for your suggestion - varying cpu architectures has gotten me in the past. However, we are both running 64 bit machines in this case. After a more thorough read of the model dependency report, I noticed the report lists RTW and Simulink Coder as required tools to operate the model. I did not find this in any of the documentation and this also does not make "sense" to me because the Embedded Coder tool should produce deployable code. Perhaps it does but not when generating a SIL block. Thanks again,
Jared
Kaustubha Govind
Kaustubha Govind el 5 de Jun. de 2012
Jared: Yes, I'm guessing you do need an Embedded Coder license for SIL.

Iniciar sesión para comentar.

Categorías

Más información sobre Dependency Analysis en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by