Page 1 of 1

Current time

Posted: Wed Mar 16, 2005 2:36 pm
by _Cristina_
Hi,

I'm working with oscillation problem.
Is there any function that returns the value of current time?
For example: F=sin(w*t)

Thanks,
Cristina

Posted: Wed Mar 16, 2005 3:10 pm
by Administrator
By "curret time" do you mean "model time" or real world time?

If its model time, then just use "time". To get the real world time you would have to either use an external function to get it, or maybe read directly from Excel.

Tony.

Posted: Wed Mar 16, 2005 3:50 pm
by _Cristina_
I used "time" in my equations, but it didn't work.
The following message appears:
"The following inputs were not expected(but are used): Time."
I'm using Vensim PLE. Has Vensim PLE this facility?

Thanks,
Cristina

Posted: Wed Mar 16, 2005 6:35 pm
by Administrator
Thats just a warning message. You didn't have "time" on the sketch with an influence arrow pointing to the variable you were entering the equation for.

Tony.

Posted: Thu Mar 17, 2005 11:32 am
by bob@vensim.com
Add Time to the sketch as a shadow variable - that is using the <var> tool.

Posted: Thu Mar 17, 2005 12:16 pm
by _Cristina_
Thanks. It worked pretty well.