Current time

Use this forum to post Vensim related questions.
Post Reply
_Cristina_
Junior Member
Posts: 4
Joined: Sat Feb 19, 2005 12:23 pm

Current time

Post 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
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Post 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.
_Cristina_
Junior Member
Posts: 4
Joined: Sat Feb 19, 2005 12:23 pm

Post 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
Administrator
Super Administrator
Posts: 4590
Joined: Wed Mar 05, 2003 3:10 am

Post 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.
bob@vensim.com
Senior Member
Posts: 1107
Joined: Wed Mar 12, 2003 2:46 pm

Post by bob@vensim.com »

Add Time to the sketch as a shadow variable - that is using the <var> tool.
_Cristina_
Junior Member
Posts: 4
Joined: Sat Feb 19, 2005 12:23 pm

Post by _Cristina_ »

Thanks. It worked pretty well.
Post Reply