Is the "timer" function deployable in Matlab 6.5 (Release 13)

2 次查看(过去 30 天)
Yes that's right MatLab 6.5 is what I am still forced to use at work!
I have implement a timer that works perfectly within the Matlab 6.5 IDE but when I compile the program using the Visual C++ 6.0 compiler (Yes, that's also what I am forced to use!) I get the following error message when I run the executable: Undefined function or variable: 'timer'
I suspect that this function is not deployable for Matlab 6.5.
Does anyone know what the first Matlab version supports deployment of the "timer" function? What is the first Matlab version to support the function: uwait(handle, seconds)?

采纳的回答

Jacob Halbrooks
Jacob Halbrooks 2013-12-19
The TIMER function was not deployable in MATLAB 6.5 since it creates an object. In the Limitations and Restrictions section of the MATLAB Compiler doc in R13, you'll find "M-files that use objects".
MATLAB Compiler was re-architected in R14, where general language support was added, including functions that use objects. However, it appears that TIMER itself remained problematic as suggested in this bug report (and possibly others).
Note that upgrading to R14 or more recent would remove most restrictions on deploying with MATLAB Compiler. The re-architecture allowed this because it no longer translates MATLAB code to C code but instead wraps the MATLAB code with an interface and requires a runtime.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Compiler SDK 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by