question

Nathaniel W avatar image
0 Likes"
Nathaniel W asked Nathaniel W commented

Error: Bad Destination Value in Sub Process

Hello, I am currently working on a model which will simulate a service line. In this process, a scope will be used in a procedure, and once that scope is placed in a drop off area, it will trigger a subprocess to have that scope cleaned. I am getting an error at the 3708 mark saying "time: 3708.571006 exception: Error: Bad destination value in "Staff Travels to Equipment" in "Move Equipment" ". This step is supposed to bring the scope from the drop off area to the sink. It seems weird to me, because the destination is a sink and I don't think it should be returning an error. This leads me to believe it might be a larger issue. Any help would be greatly appreciated. I have attached my model below. Thank you!

BadDestination.fsm

FlexSim 21.0.2
flexsim 21.0.2movementtransport equipment
baddestination.fsm (934.9 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

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Nathaniel W commented

Two things:

1. You never acquired the Coloscopy Scope equipment.

2. You're acquiring the objects onto labels on current. In a general flow current is the process flow itself. Instead you should acquire onto labels on the token.

baddestination_fixed.fsm


· 3
5 |100000

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

Nathaniel W avatar image Nathaniel W commented ·

Thank you very much for your help @Matthew Gillespie. What I was trying to do was acquire the scope during the patient flow and then release it after the cleaning process, which is why the scope wasn't acquired during the cleaning process. But now, and the problem I was having before, is that there is a new scope being acquired and cleaned. In the simulation baddestination_fixed.fsm, CS1 is the scope that is used for the procedure, but CS2 is the scope getting cleaned. Is there a way to make sure that the scope being cleaned is the scope that was used in the procedure? Thank you!

0 Likes 0 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ Nathaniel W commented ·

@Nathaniel W

OK, here's how I would do this. I would just release the scope in the patient flow and then have the Scope Cleaning flow listen to the OnRelease event of the Colonoscopy Scopes group. That way a token is created in that flow whenever one of the scopes in that group is released. You can use the Assign Event Object To field to store off the scope that was just released.

Scope_OnRelease.fsm

1 Like 1 ·
1615314556110.png (52.3 KiB)
scope-onrelease.fsm (931.6 KiB)
Nathaniel W avatar image Nathaniel W Matthew Gillespie ♦♦ commented ·

@Matthew Gillespie This is exactly what I was looking for! Thank you so much for your help, I have been stuck for a while and this was one of the last major hurdles to get this up and running. Thank you!

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.