Jump to content
Simio Forum

Welcome to the Simio Forum

Welcome to the Simio Forum! Experience the full experience of the forum by becoming a Simio Insider! You must be an Insider to post on any forum!

Click_Here_button.png

New Software Release

Our latest release, Simio 11, is here!

johnhagood

Vector/Matrix of Timers

Recommended Posts

I want to be able to schedule events for the future without having to define a separate timer for each possible time this will happen. Ideally i'd like to be able to index into a vector of timers to start one, so it can be dependent on a state variable.

One use of these would be recurring tasks, for instance, while a patient is in post-surgery, they will be administered medicine every r hours. This is dependent on them exiting surgery (it doesn't begin at a specific time), so a rate table doesn't really work, and that would run into a similar problem of having to define different rate tables for each patient type and recurring tasks (potentially hundreds).

 

Any ideas?

Edited by johnhagood

Share this post


Link to post
Share on other sites

I believe you can't create of vector of elements. Although, you can create a element reference state vector, which might be helpful.

Your best bet would probably be modelling your process logic to trigger events through the Fire step, instead of using a timer.

Or maybe adding a timer inside a object model, so every instance of that object has its own timer.

Share this post


Link to post
Share on other sites

×
×
  • Create New...