S-Function Builder changes entries after closing and re-opening

조회 수: 3 (최근 30일)
Alexander Tuma
Alexander Tuma 2024년 2월 26일
댓글: Alexander Tuma 2024년 3월 21일
I am using Matlab 2018b and have a Problem with the S-Function Builder.
If i add a SRC_PATH like shown in the first image, then build the S-Function successfully and close the S-Function-Builder and reopen it, all SRC_PATH and INC_PATH get changed like shown in the second image. After the change it does not build successfully.
Does someone know why this happens? As one can understand it is quite frustrating if there are like 15 SRC_PATH und INC_PATH.
Best regards,
Alex

채택된 답변

Saurabh
Saurabh 2024년 3월 21일
HI Alexander,
Seems like S-function builder automatically adds a new line at any whitespace when something is added to the "Library/Object/Source files" box in the "Library" pane.
Eliminating the whitespaces is the workaround for this issue. For instance, alter
INCLUDE_PATH ./include
to
INCLUDE_PATH./include
Additionally, it appears that the R2019b release addresses this issue, so updating to the recent MATLAB version may be another way to solve the problem.
For more details you can refer to the link attached below:
I hope this was useful.
  댓글 수: 1
Alexander Tuma
Alexander Tuma 2024년 3월 21일
Hi Saurabh,
thank you for your answer, it does fix the problem.
Due to some compatibilities to other software i have to stick to 2018b.
Best regards,
Alex

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by