question

Osama A6 avatar image
0 Likes"
Osama A6 asked Jeanette F commented

Dynamic table

How to create a table that rows equal to the number of task executors and columns are the number of machines in the systems. The table is updated automatically as we change the number of objects in the system. Each table's cell is populated by one each time task executor used as a source for the machine.

FlexSim 21.2.3
tables
· 4
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
3 Likes"
Felix Möhlmann answered

One way to do this would be to search through the model tree in the "On Reset" trigger of the table and create a row or column for each object of the respective classes that is found.

This is demonstrated in the attached model. As Jeanette mentioned it might be easier to add the objects to groups. Then you could loop through the groups instead of the entire model. In the attached model only the first "layer" of the model is searched. If the objects were inside a container object they would not be found.

The table is incremented in the "Unload" trigger of the operators. When creating the table, each of the objects is assigned their respective row or column number as a label, so they can be referenced in the trigger.

DynamicTable.fsm


dynamictable.fsm (43.6 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.