question

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

Read cycle times jumping from row to row

Hi FlexSim team,

Could you help me to "reverse" this logic:

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


Currently the process flow reads the process-time jumping from column to column:

1709853893284.png


Now I want that the logic reads jumping row to row, like this:

1709854014785.png

Thank you


FlexSim 23.2.2
flow logicprocesstimes
1709853893284.png (13.8 KiB)
1709854014785.png (14.7 KiB)
· 1
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi @Luis Fernando, was Julio R's answer helpful? If so, please click the "Accept" button at the bottom of their answer. 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 comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Julio R avatar image
0 Likes"
Julio R answered Felix Möhlmann commented

Hello Luis,

I believe what you need is this:

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

Please, let me know if this is what you want.

· 1
5 |100000

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

Felix Möhlmann avatar image Felix Möhlmann commented ·

It should be gettablerows() instead of gettablecols().

The used commands are also technically deprecated. In current syntax the expression would be

Table("ProcessTimes")[current.stats.output.value % Table("ProcessTimes").numRows + 1][1]

If the old syntax is prefered then feel free to use it though.

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.