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.

Jeanette F avatar image Jeanette F ♦♦ commented ·
Hello @Osama A6,

How is the number of task executers and machines in the system changed? Are they in a group? Can you provide your model or an example model?

0 Likes 0 ·
Osama A6 avatar image Osama A6 Jeanette F ♦♦ commented ·
Just when you drag a machine or task executed.
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ Osama A6 commented ·
So you have not assigned the task executers or machines to any group or process flow resource? There needs to be some way to distinguish these objects so the number that in the model can be determined.
0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Osama A6, was Felix Möhlmann's answers helpful? If so, please click the "Accept" button at the bottom of the one that best answers your question. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

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.