question

Luis Fernando avatar image
0 Likes"
Luis Fernando asked Luis Fernando commented

Set the process time by a label using a Global Table

Hi FlexSim team,

I would like to set the process time of a processor depending on the Model label (by a global table). Is it possible to read from the Global Table the Model (Row) and the Process Time accordingly?

1669245330760.png

Here is attached my model: Process Time by Model label.fsm

Thank you,
Luis


FlexSim 22.2.3
processorlabelprocesstime
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

Matthew Gillespie avatar image
2 Likes"
Matthew Gillespie answered Luis Fernando commented

Your model will work if you move the values in the Models column into the row headers of the table:

1669246280337.png


Otherwise you would need to use the Table.getValueByKey() method:

  1. Table("GlobalTable1").getValueByKey(item.Model, 2, 1)

1669246280337.png (4.7 KiB)
· 3
5 |100000

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