Cannot locate RTW S-function from Simulink Coder: R2010a
2 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Kaustubha Govind
on 4 Jun 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 Comments
Kaustubha Govind
on 5 Jun 2012
Jared: Yes, I'm guessing you do need an Embedded Coder license for SIL.
See Also
Categories
Find more on Dependency Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!