Invalid value for LifeSpan parameter

26 次查看(过去 30 天)
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 CenterFile Exchange 中查找有关 Introduction 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