question

Gabriel illescas Cavazos avatar image
0 Likes"
Gabriel illescas Cavazos asked Matthew Gillespie answered

how can I use a cycle(for) in process time?

FlexSim 17.0.2
cycle for
· 2
5 |100000

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

Jacob Gillespie avatar image Jacob Gillespie ♦ commented ·

I'm not sure what you mean. Can you elaborate?

0 Likes 0 ·
Gabriel illescas Cavazos avatar image Gabriel illescas Cavazos commented ·

I want to read different values from global table like a sequence but I want to do through "for cylce" in processor object

0 Likes 0 ·

1 Answer

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered

This model shows how you could make a Processor use a sequence of processing times defined in a table. The key part is to use code like this in the Process Time field:

gettablenum("ProcessTimes", getoutput(current) % gettablerows("ProcessTimes") + 1, 1)

This will make the first item use the first processing time in the table, the second item the second time, etc. After an item uses the last time in the table, the next one goes back to the top of the table.


5 |100000

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

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.