question

ighiri-mehdi avatar image
0 Likes"
ighiri-mehdi asked Allister Wilson edited

How can I change the order of scheduled source triggers at time 0?

Hello everyone,

I have a model with several Scheduled Sources that trigger at time 0. The problem is that they trigger in the order they were created. I tried changing their order by moving my object to the top of the data tree, but it didn't work. Is there a solution to change the order without deleting and recreating these objects?

Thank you in advance.

FlexSim 25.0.2
scheduled arrivaleventlist
5 |100000

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

Allister Wilson avatar image
1 Like"
Allister Wilson answered Allister Wilson edited

The order seems to depend on an internal list of couplings in the process flow's attribute tree (search for blockInstances if you're curious).

This list appears to be rebuilt when you open the model.

You can move the activities in the tree to put them in the order you want, then just save and reopen the model.

1744818092852.png

1744818148982.png


1744818092852.png (8.7 KiB)
1744818148982.png (8.7 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.

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered ighiri-mehdi commented

Attached file shows that order in modet tree rank is responsible for order of execution of reset triggers. The order of creation is shown by a number in each object name. Each of them print their name into an output console. I have moved last source a rank up in the tree.changeRank_changingExecutionTrigger.fsm


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

ighiri-mehdi avatar image ighiri-mehdi commented ·

Thank you for your response. However, I feel that it works well for objects in the Model interface but not in the process flow. You will find attached a test with the process flow.changerank-changingexecutiontrigger PROCESSFLOW.fsm

0 Likes 0 ·