How to use global variable in Legacy Code Tool

조회 수: 1 (최근 30일)
Seungjo Oh
Seungjo Oh 2018년 4월 11일
댓글: Sreenath Kottekkode 2022년 10월 21일
Hi,
I converted my c code to s-function by using legacy code tool. but I have a problem that each s-function can't share global variable.
for example, I have a function FuncA, FuncB and global variable testA. all functions and gloval variable are declared in test.A,
and I convert FuncA, FuncB to s-function by using legacy code tool. Although FuncA updates the value to global variable testA, testA doesn't change in FuncB.
Because I insert my code to other project, I need to use the global variable in header file. How can I use global variable in header file when I convert my c code to s-function. Shoud I configure the options of Legacy Code Tool?
I hope that you can help me
  댓글 수: 2
Mohamed Abdelaal
Mohamed Abdelaal 2022년 9월 23일
Hi Seungjo,
Did you find any solution for this issue?
Sreenath Kottekkode
Sreenath Kottekkode 2022년 10월 21일
Hi Guys,
Did any one of you get a solution for this?
Thanks

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 멀티코어 프로세서 타깃에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!