Invalid value for LifeSpan parameter

33 visualizaciones (últimos 30 días)
Ramesh Saagi
Ramesh Saagi el 20 de Mzo. de 2015
Editada: Walter Roberson el 9 de Dic. de 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 comentarios
anschwarz
anschwarz el 8 de Dic. de 2015
Hi Ramesh,
I'm having the the same issue right now. Did you find any solution?
Thanks
Ramesh Saagi
Ramesh Saagi el 9 de Dic. de 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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by