필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Change Simulink function exported prototype

조회 수: 1 (최근 30일)
Guilherme T Silva
Guilherme T Silva 2018년 8월 13일
마감: MATLAB Answer Bot 2021년 8월 20일
Hi,
I'm trying to generate a set of public functions that will serve as interface to my module once I generate C code from it. I'm setting up a number of Simulink Functions in the top level of that model and in general it works as intended.
The only problem is that I can't control the function naming once the C file gets generated. It always generates it in the format of ModuleName_FunctionName(args), but the coding guidelines from the company I work for state that we must use ModuleName__FunctionName(args), with the double underscore.
How can I achieve this? I'm sending attached a sample model with a single Simulink function.
  댓글 수: 2
TAB
TAB 2018년 8월 14일
Are you using Simulink Function Block ?
Which Matlab Version?
In my Matlab 2015b, I can easily control the function name (file name is always same as function name) in Simulink Function Block.
Guilherme T Silva
Guilherme T Silva 2018년 8월 14일
Hi Tabrez, I'm using 2018a. I used to be able to control it easily with 2017a as well, but can't find that same option in the latest release.

답변 (0개)

이 질문은 마감되었습니다.

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by