Static Functions in Real Time workshop
显示 更早的评论
Hi,
Is it possible to generate static functions instead of extern functions when using Real Time workshop? My problem is that when two seperate real time workshop codes are combined together, errors are generated due to the function names being redundant. So I am having to manually rename the functions as static once the code is generated. Is there any method of automatically defining them as static when real time workshop is used to convert the model to C code?
Eg: The functions I have problems with are - rt_GetLookupIndex, rt_Lookup and rt_Lookup2D_Normal. These are generated by Real Time Workshop when converted to C codes and they are defined as extern instead of static, which I need.
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!