Web App Server FATAL error due to TImeScope

3 次查看(过去 30 天)
Web App Server gives error due to TimeScope and stop openning App. Log says that Error defining property WebScope of class matlab.ui.scope.TimeScope. Unrecognized function or variable matlab.ui.scope.internal.webscopes.UITimePlotBaseWebScope.empty. Such error appears on particular PC and simple app is working (the same app as compiled web app). Another PC don't gives such error. How I can correct this problem?

回答(1 个)

Abhas
Abhas 2025-6-25
Hi @VB VB,
The error message indicates that the web-compatible version of the TimeScope class isn't found in the runtime environment of the server. This happens due to the following reasons:
  • The Web App Server installation lacks the necessary version of Simulink UI components.
  • The MATLAB release installed on that machine is older than the one used to compile the app
You can follow the below steps to fix the issue:
  • Match MATLAB Releases: Make sure the Web App Server on the problematic PC is running the exact same MATLAB release (R2024a or newer) as the app was compiled with.
  • Install Required Toolboxes: The "TimeScope" UI component is part of Simulink’s UI scope functionality. Ensure the Web App Server machine has the Simulink UI Scope and related components installed and licensed.
  • Update Web App Server:Download and install the latest Web App Server release that supports "TimeScope" (R2024a+). This will include the missing "UITimePlotBaseWebScope" class.
You may refer to the below documentation link to know more about the same: https://www.mathworks.com/help/simulink/slref/matlab.ui.scope.timescope-properties.html
I hope this helps!

类别

Help CenterFile Exchange 中查找有关 MATLAB Web App Server 的更多信息

产品


版本

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by