Web App Server FATAL error due to TImeScope

2 views (last 30 days)
VB VB
VB VB on 8 Apr 2025
Answered: Abhas on 25 Jun 2025
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?

Answers (1)

Abhas
Abhas on 25 Jun 2025
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!

Categories

Find more on MATLAB Web App Server in Help Center and File Exchange

Products


Release

R2024a

Community Treasure Hunt

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

Start Hunting!