question

Jingyong P avatar image
0 Likes"
Jingyong P asked Jingyong P commented

Use Global table to look up process time

Thanks for reading my post.

I am build a model to simulate multiple processes. I would like to use the processors' name (in this example, its processor 1 and process 2) and ItemName to look up the process time in global table.

for example., product 1's process time on processor 1 is 50 and on processor 2 is 25.

ultimately, when I add more and more processes/processors into the model , it can lookup the process time from Global Table as long as the name matches.


example.fsm

FlexSim 20.1.2
global tableglobal lookup table
example.fsm (29.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.

1 Answer

·
tannerp avatar image
0 Likes"
tannerp answered Jingyong P commented

You can put the processor's name in the row field on the Global Table lookup like what I've done here:

Hopefully this helps.

example (4)_1.fsm


example-4-1.fsm (197.5 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.

Jingyong P avatar image Jingyong P commented ·

Thank you @tanner.p

Yes, with your help, i am half way there. I updated accordingly.

But how to make Column section more flexible instead of hard coded column number?

can I use Flowitem label to help identify column number?

0 Likes 0 ·
tannerp avatar image tannerp Jingyong P commented ·

Yes, you should be able to use a label on the Flow Item just like what we did for the row. For example:

item.productType //Returns string like "Product 1"

Go ahead and add the labels and try it, then let me know if it works.

0 Likes 0 ·
Jingyong P avatar image Jingyong P tannerp commented ·

Its working. Thank you again.

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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