question

SudheerReddy avatar image
1 Like"
SudheerReddy asked SudheerReddy edited

Wait for Event error

Following is the error message I am getting in Wait for Event activity. When I remove Delay1 activity the error message is not coming. Not able to understand what mistake I made. Any feedback on this please.

I am attaching the model for reference.

waitforevent.fsm

FlexSim 20.0.3
wait for event
wait4event.jpg (42.7 KiB)
waitforevent.fsm (41.4 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.

Matthew Gillespie avatar image
1 Like"
Matthew Gillespie answered SudheerReddy edited

You're seeing that error because you're trying to listen to an event on a partition that doesn't exist. You need to have at least one thing enter the zone with a certain partition value for that partition to be created.

However, you might not even need to use partitions. Since you're using an instanced flow you can change the Zone's Type from Global to Local and then there will be a separate instance of the Zone for each TE. Then you can just listen to the OnContentChange.

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

SudheerReddy avatar image SudheerReddy commented ·

@Matthew Gillespie

Thanks for the answer. It cleared the mistake I made. I'm asking following as new question, where I am applying the OnPartitonContentChange.

Link for new question

https://answers.flexsim.com/questions/80383/looking-for-alternative-to-onpartioncontentchange.html

Below is the description and extension of this question

The reason why I am using Global instead of Local is to know all the parked vehicles in each loop (Here loop I mean Type 1 ,Type 2 ,Type 3) as shown in below image. I don't want to activate Parked vehicles in Type2 and Type3 loop if there is no work. ( I am using AGV process flow standard template where I am trying to modify ). As you can see in the below image Type 2 and Type 3 AGVs are activated even if there is no work. I am trying to restrict this using OnPartionContentChange.

I am attaching the model for reference.

agv-park-1.fsm

0 Likes 0 ·
agv-park-1.fsm (159.5 KiB)
agvloop.jpg (92.1 KiB)
Braydn T avatar image
0 Likes"
Braydn T answered SudheerReddy edited

@Sudheer R You are trying to partition by type, and then have the event triggered source listen to that partition by type, but there are no labels Type. I would use onContentChange.

5 |100000

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