필터 지우기
필터 지우기

Create S-function block of generated c-code

조회 수: 1 (최근 30일)
Kai
Kai 2013년 8월 2일
Hello,
I want to create a s-function block of generated c-code. The aim of this s-function block is to test the generated c-code on model base. I have created a s-functin.c file with the 3 commands:
set_param( modelName, 'GenerateErtSFunction', 'on' );
set_param( modelName, 'GenCodeOnly', 'off' );
rtwbuild( modelName );
My problem is now, that I don't know how I can create a Simulink S-function block of the generated C-Code. I tried to use the s-function block of the library but than I got only one input and one output of the block. How can I add/configure the other outputs? Because my model has 3 inputs and 2 outputs.
Thank you in advance.
  댓글 수: 1
Kaustubha Govind
Kaustubha Govind 2013년 8월 2일
편집: Kaustubha Govind 2013년 8월 2일
Did the rtwbuild command generate a MEX-file in the current directory (usually, it has the name modelname_sf)?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by