Invalid value for LifeSpan parameter

37 views (last 30 days)
Ramesh Saagi
Ramesh Saagi on 20 Mar 2015
Edited: Walter Roberson on 9 Dec 2015
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 Comments
anschwarz
anschwarz on 8 Dec 2015
Hi Ramesh,
I'm having the the same issue right now. Did you find any solution?
Thanks
Ramesh Saagi
Ramesh Saagi on 9 Dec 2015
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

Sign in to comment.

Answers (0)

Categories

Find more on Introduction to Installation and Licensing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!