Invalid value for LifeSpan parameter

41 Ansichten (letzte 30 Tage)
Ramesh Saagi
Ramesh Saagi am 20 Mär. 2015
Bearbeitet: Walter Roberson am 9 Dez. 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 Kommentare
anschwarz
anschwarz am 8 Dez. 2015
Hi Ramesh,
I'm having the the same issue right now. Did you find any solution?
Thanks
Ramesh Saagi
Ramesh Saagi am 9 Dez. 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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by