Azzera filtri
Azzera filtri

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

2 visualizzazioni (ultimi 30 giorni)
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)?

Risposta accettata

Jacob Halbrooks
Jacob Halbrooks il 19 Dic 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.

Più risposte (0)

Categorie

Scopri di più su MATLAB Compiler SDK in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by