Cannot locate RTW S-function from Simulink Coder: R2010a
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (1 件)
Kaustubha Govind
2012 年 6 月 4 日
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 件のコメント
Kaustubha Govind
2012 年 6 月 5 日
Jared: Yes, I'm guessing you do need an Embedded Coder license for SIL.
参考
カテゴリ
Help Center および File Exchange で Dependency Analysis についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!