question

zaetrab avatar image
0 Likes"
zaetrab asked zaetrab commented

On Resource Available Change Activity

Hi!

I have a simple simulation with an elevator that uses "On Resource Available Change" to make pallets wait for the elevator. The queue next to the elevator represents the elevator's roller conveyor, which picks up two pallets, so pallets can only enter when the elevator is in the down position.
In the "On Resource Available Change" block, "Change rule" I have "Increase to exact value" set. - value 1. If I understand correctly, when the elevator is in use the resource available value is 0 and changes to 1 when the resource is released. Everything works as it should, I only have one problem. When the elevator is in motion and I press reset simulation I get this error:
"exception: Exception caught in evaluation of /Tools/ProcessFlow/ProcessFlow/Elevator>stats/instances/ProcessFlow/resourceAvailable/onChange".

My questions are:
- Do I understand and use the "On Resource Available Change" block correctly in this case.
- Why does this error appear and is it possible to do something about it?


simple_elevator.fsm

FlexSim 24.0.1
wait for eventexception errorquestion
simple-elevator.fsm (54.1 KiB)
· 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.

Felix Möhlmann avatar image Felix Möhlmann commented ·

As far as I can tell, there is no issue with how you build the Process Flow. I think this might be a bug. I moved this post to the bug report section and only write this as a comment, so a developer might take a look at this post.

As a workaround, you can use the "On Content Change" event instead. Meaning the tokens wait until the elevator is 'not acquired' rather than 'available' (which is the same thing in this case).

simple-elevator_1.fsm

1 Like 1 ·
Joerg Vogel avatar image Joerg Vogel commented ·
@zaetraB, “On resource available“ fires once a taskexecuter tasksequencequeue gets empty and there isn’t an active tasksequence. A taskexecuter has nothing more to do. A taskexecuter, which is doing a transport job but has still capacity left is not firing an “on Resource available“ event, if a change of content happens.
1 Like 1 ·

1 Answer

·
Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered zaetrab commented

Note sure why this bug is happening, but can you not just use the default behavior for this without a process flow? Do you need it to take 2 every time?

simple-elevator_jl.fsm

I've sent it into the developers.


· 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.

zaetrab avatar image zaetrab commented ·

Main goal of that elevator was to pick up two pallets. I already have a solution to this problem without using "On Resource Available Change" activity, so I guess my problem is solved. Either way, thanks for 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.