question

Amy M3 avatar image
0 Likes"
Amy M3 asked Amy M3 commented

Operator Stats

Im trying to measure how long an operator is "busy" vs "idle". I don't have actual task/travel times, just total times for a set of activities. I worked with Logan to get this to work so the time is correct but also shows the simulation working. Now I am having an issue with the stats. On the left side, that is the time the operator is busy, right side is for the visuals for simulation. As soon as the token on right finishes and left is still at the delay, it sets operator to "idle". I've tried changing his state right before the delay but no luck. Is there a way to make sure whenever it's in the delay on left side, operator is set to "busy"?

FlexSim 21.1.0
flexsim 21.1.0
op-stats.jpg (46.2 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.

1 Answer

·
Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Amy M3 commented

Give him an utilize task, wherein you can set him into a state you like.

And if the delay gets finished then free him.

You’ll need
TASKTYPE_UTILIZE and command freeoperators.

· 8
5 |100000

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

Amy M3 avatar image Amy M3 commented ·

Thank you, I'll give that a try!

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Amy M3 commented ·

Command free operators is a picklist option in custom code activity

0 Likes 0 ·
Amy M3 avatar image Amy M3 commented ·

Im getting the operator state to utilize now, but I can't get the free operators to work. Here is what I have in utilize and free. I tried different things for the object/involved, also tried custom code (from basic menu). It just gets stuck on the free task.Any ideas?

0 Likes 0 ·
processflow.jpg (48.5 KiB)
utilize.jpg (27.6 KiB)
free.jpg (28.9 KiB)
Amy M3 avatar image Amy M3 commented ·

I think i got it, i found an old example you posted. I had to create a dummy resource to free operator.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel Amy M3 commented ·

It is not necessary to add a resource and activity is sufficient.

0 Likes 0 ·
Amy M3 avatar image Amy M3 Joerg Vogel commented ·

I did that originally but it just gets stuck on the free op activity.

0 Likes 0 ·
Joerg Vogel avatar image Joerg Vogel commented ·

Attached model shows utilize task as 3D trigger and Process Flow variant

utilize_operator.fsm

0 Likes 0 ·
Amy M3 avatar image Amy M3 commented ·

Thank you! I finally got this working late last night. I think i had some complications with also hiding/unhiding my operator (with a forktruck). I was able to go back to the custom code for free operators and get rid of the dummy resource. I did notice if you don't give a location, it gets mad. I didn't really have a location since my operator was on a forktruck so i made a dummy one and that worked. I also noticed if i used the actual task for free operators, it was also freeing up my aquired resource and causing other issues. It appears to be working now, thanks for you help!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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