Is the "timer" function deployable in Matlab 6.5 (Release 13)
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Glenn
am 18 Dez. 2013
Beantwortet: Jacob Halbrooks
am 19 Dez. 2013
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)?
0 Kommentare
Akzeptierte Antwort
Jacob Halbrooks
am 19 Dez. 2013
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Compiler 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!