question

bmensah avatar image
0 Likes"
bmensah asked bmensah edited

Reference PhotoEye Groups by Case in Event Triggered Source

I am getting the following error when trying to use the "Objects by Case" option to select which group to listen to in an event-triggered source activity.

  1. exception: Error: Invalid triggering event, event rank 1, at wait for event activity "Source" in process flow "ProcessFlow"

Both groups contain only photoeye objects and I want to listen to the "On Cover" event for the photoeyes. I am able to select a group of photoeyes and the "On Cover" event when creating an event-triggered source for just one group, but it does not work when attempting to use the Object by Case option. It seems that the Object by Case option only allows you to select specific objects, not object groups.

Is there a way to use Object by Case with object groups so that I can select which group of photoeyes to listen to in the event-triggered source based on a parameter value?

ObjectByCaseWithPEGroups.fsm

FlexSim 25.1.0
event-triggered sourcevalues by caseobject group
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 bmensah edited

The only way I could make this work with a single source and event is to set the value of the Source's objRef node directly in the OnSet code of the parameter.

objectbycasewithpegroups_1.fsm

Other workarounds would be to create one source per group and only ever have one active at a time (deactivate the others in the OnSet code).

Or always listen to all PhotoEyes and then filter out tokens whose triggering PhotoEye is not in the correct group.


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