question

Noah Z avatar image
0 Likes"
Noah Z asked Noah Z commented

How to capture event finish time for a given processor?

I would like to pull out the time an event is scheduled to be complete. I'm having trouble finding this information in the tree.

Is there a way to pull that specific processor's "Process Finish" time out? The reason I need this is that if a specific user event is triggered while that processor is being utilized I want to have a delayed message sent to another piece of code that will run once the processor is complete.

FlexSim 16.0.4
processorevent list
event-timing.png (16.8 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Regan Blackett avatar image
0 Likes"
Regan Blackett answered Noah Z commented

@Noah Zenker

I would probably handle this by using some Process Flow activities. First I would have an 'Event Triggered Source' listen for when your User Event fires, creating a token to work with. Follow that with a 'Decide' activity that checks to see if the processor is in use (either by checking it's content, or current state, etc).

If the Processor free , use a 'Custom Code' activity to do whatever operation you need. If it's in use, put in a 'Wait for Event' activity to listen for the processors Process Finish Trigger and then have a another Custom Code activity that sends your message.


2016-10-27-0830.png (25.9 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Noah Z avatar image Noah Z commented ·

Thanks Regan!

0 Likes 0 ·
Steven Hamoen avatar image
0 Likes"
Steven Hamoen answered

@Noah Zenker

You can also put the required process time on a label ( for instance on entry) and the read the label where you want to set the process time. If at any given time in the program you can query the processor and the label value together with the entry time of the item will you give you the finish time.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel edited

You can use the OnProcessFinsh Trigger to achieve this without the need to analyze the events at all.

But if you like your way then please look inside the command reference Category Index "Event"


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.