Deploying applications that run continuously for months

3 ビュー (過去 30 日間)
Shaju John
Shaju John 2013 年 4 月 26 日
回答済み: Dirk Engel 2025 年 1 月 27 日
I have a deployed application that is supposed to run autonomously for months. Within this application I have one timer object that calls a few functions, crunches data and updates mat files, reads some other mat files and updates the plots on the screen.
I have a problem where the application runs fine for a couple of days and then errors out with this message.
--------------------------------------------------------------
'COULD NOT OPEN FILE: C:\Program Files\MATLAB\MATLAB Compiler Runtime\v716\toolbox\matlab\iofun\@timer\get.m
Caught "std::exception" Exception message is:
Message Catalog MCR:mclmcr was not loaded from the file. Please check file location, format or contents
-------------------------------------------------------------
  • Have any of you experienced a similar problem with deployed applications with timers?
  • Have you designed deployed applications that stay alive for weeks/months without need for restart. ( Deployed, not in MATLAB environment). If so, what are you experiences regarding the stability of MATLAB timer and MATLAB applications with the Windows OS.
  • Item two
  2 件のコメント
Sean de Wolski
Sean de Wolski 2013 年 4 月 26 日
I'd recommend contacting technical support for this.
Shaju John
Shaju John 2013 年 4 月 30 日
Sean: I already did. I was trying to find out users who might have developed long-term autonomous applications in MATLAB and who might be able comment about my issues.

サインインしてコメントする。

回答 (1 件)

Dirk Engel
Dirk Engel 2025 年 1 月 27 日
Experienced developer here, with some deployed apps running as back-end services uninterruptedly for years on Windows.
We don't use timers, but I remember a "file not found" problem that sometimes occured out of the blue. This was related to the default MATLAB Runtime chache directory (located under %temp%) being auto-deleted by a system utility every now and then, removing the very m-files that your application (your timer callback function) wants to execute. We changed MCR_CACHE_ROOT to a non-temp directory and have no problems since.

カテゴリ

Help Center および File ExchangeApplication Deployment についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by