Invalid value for LifeSpan parameter

33 ビュー (過去 30 日間)
Ramesh Saagi
Ramesh Saagi 2015 年 3 月 20 日
編集済み: Walter Roberson 2015 年 12 月 9 日
Hi All,
I use simulink to run simulations for a wastewater system. The model has simulink blocks and C S-functions. Inputs are from arrays and structures.
Recently, i get the below error
Error due to multiple causes.
Caused by:
Invalid value for LifeSpan parameter.
LifeSpan value must be a positive double
scalar
Error while evaluating LifeSpan parameter.
Default application life span (1) day will be
Used
The error seems to be due to the parameter Application LifeSpan which is there in Simulation>Configuration Parameters>Optimization. I did not change anything here. They are all default values. The value now is inf which is the value by default. I do not do any optimization with my model. I tried to figure out the reason by googling, but could not find much help.
I use a 32-bit Matlab 2013a version. I tried reinstalling Matlab, installing a different version, restarting computer, running it on a friend's computer. None of them solved the problem. Absolutely cluelesss about the problem.
Any help will be greatly appreciated. This has stopped my work for the last two days.
  2 件のコメント
anschwarz
anschwarz 2015 年 12 月 8 日
Hi Ramesh,
I'm having the the same issue right now. Did you find any solution?
Thanks
Ramesh Saagi
Ramesh Saagi 2015 年 12 月 9 日
Hi,
I could resolve the error. In my case there was a variable with the name "inf" which i created to see some results after the simulation. Apparently, the variable name "inf" is being confused with the value inf (infinity). Once i deleted inf and did not use it anymore. The problem is resolved.
Hope that helps!
/Ramesh

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by