localtime not defined error when generating C++ code in Simulink using TE1400
Show older comments
I am using TwinCAT Target for Simulink TE1400 to generate C++ code from a simple Simscape model. When generating Code I get a few error messages and warnings (see attached log file). What I was able to find out is that the root of the problem is the following:
In this external file ex_0bded19e the function "localtime" is called, without being defined:

This then results in error messages in row 3909:
My question is, why is localtime not defined? Is there a additional file that Matlab needs but is missing? Do I have to set a specific path in the Matlab environment?
Accepted Answer
More Answers (0)
Categories
Find more on Simulink in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!