Help! Timer

Use this forum to post Vensim related questions.
Post Reply
buckseye
Junior Member
Posts: 2
Joined: Thu May 26, 2005 12:27 am

Help! Timer

Post by buckseye »

I need to use timer/counter which helps to generate a function periodically, like quarterly, yearly. Anyone know how to do that?
Administrator
Super Administrator
Posts: 4865
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

If I understand you correctly, you need a function to repeat at a fixed time period.

Try using the Modulo function first.

If that does not do what you want, you will have to use a level. Add some 'days'/'monts'/'minutes' into the stock every time step, monitor the total until it reaches the value you need. Now you will have your trigger. Reset the level at this point and it will start the process again.

Tony.
buckseye
Junior Member
Posts: 2
Joined: Thu May 26, 2005 12:27 am

Thanks

Post by buckseye »

I try MODULO. However, I got this :

"Unable to achieve desired accuracy in integration at time 12"
"Unable to achieve desired accuracy in integration at time 12.002"

I am using a monthly trigger. What is wrong? In addition, the system does not accept "Time" variable in the function. Thanks a lot for your answer.
Administrator
Super Administrator
Posts: 4865
Joined: Wed Mar 05, 2003 3:10 am

Post by Administrator »

Can you post to the forum what you have?

Tony.
Post Reply