question

mark zhen avatar image
0 Likes"
mark zhen asked Felix Möhlmann commented

Control area

Control area example.fsm

I want to implement a function:

When I have a car blocked by a control area, I need to make an object in my model change color, but I don't know how to set up this logic and what kind of events I need to use.

1740471197227.png


FlexSim 23.0.15
control area
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

I see two options:

Either you listen to the On AGV Allocation Failed event of the AGVs and check whether the object that is failed to allocate is the control area.

Or you listen to the On Request event of the control area and then check if the request was allowed or denied.

I'd probably use the second option. Mostly cause the event will likely trigger less often and because you then only need to listen to a single object instead of all AGVs.

failed-allocation-check.fsm


· 2
5 |100000

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