Real Time workshop static variables?
显示 更早的评论
Hi,
I am using real time workshop to convert two separate and independent simulink models to C files, to be used on the same piece of hardware (integrated into another C file). The problem I have is that both these models have look up tables in them and when their respective C codes are integrated into one big C code, errors are generated (due to variable names being redundant).
So currently I am having to manually change the 'extern' variables (like extern int_T rt_GetLookupIndex) into 'static' before compiling the final C code. These variables are generated during the conversion of the simulink model into C.
Is there any way of automatically setting these variables as static when you use Real Time workshop to convert them to C? As in is there any way of defining these look up tables to be used only till the end of the respective C code? The look up tables values are defined in the matlab before using real time workshop to convert them to C.
Regards, DPac
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!