Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
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)?

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre MATLAB Compiler SDK en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by