How to use global variable in Legacy Code Tool
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu 멀티코어 프로세서 타깃 finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!