Error : Undefined variable "uiscopes" or class "uiscopes.​getDefault​Position" - standalone application

2 次查看(过去 30 天)
Currently, I'm building a stand-alone Windows application using Matlab Compiler. While the GUI matlab code runs perfectly within Matlab, the compiled stand-alone application doesn't work and gives an error - Undefined variable "uiscopes" or class "uiscopes.getDefaultPosition".
In my Matlab code, I create a Spectrogram scope window using dsp.SpectrumAnalyzer. Without dsp.SpectrumAnalyzer, the stand-alone application is executed well without any problem although there is no spectrogram scope window.
My matlab version is 2014a. How can I run the stand-alone application without the error?

采纳的回答

Titus Edelhofer
Titus Edelhofer 2014-9-1
编辑:Titus Edelhofer 2014-9-1
Hi,
on the page product support of compiler you see what functionality is supported. I unterstand that the SpectrumAnalyzer falls into the category "Apps and UIs". Sorry ...
Titus

更多回答(1 个)

Sergei P.
Sergei P. 2019-1-20
编辑:Sergei P. 2019-1-20
MATLAB needs to issue an error during the compilation time, not during runtime, when it's too late an d the user is sitting and wondering what the hell is going on. Remember the Package button? That's when.
  3 个评论
Sergei P.
Sergei P. 2019-1-20
No? Whatever functions are in the included *.m file during compilation and project build, those functions will stay during runtime and no new functions will appear. This is guaranteed. That's how MATLAB knows.

请先登录,再进行评论。

类别

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

Community Treasure Hunt

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

Start Hunting!

Translated by