question

Alexis B avatar image
0 Likes"
Alexis B asked David Chas answered

Make loop for Increment Variable

Hello everyone.

Today, I don't know how make a loop in order to get new variables ( in GlobalTable ) in my token.

1st - My token takes all variables in the 1st row of my Global table

2nd - When my sink will have 5 input ( Value of Qty 1st row), my token will have new variables : all the second Row ans set all processtime of my all processor. Source2 open with another Itemflow with new qty

I don't know how to increment my variable only +1 for the row

Is it possible to make a loop at 1st "Get variable" ? with new variable

Thank you.

ex10.fsm

FlexSim 18.1.1
global tablevariableloop
12.png (230.8 KiB)
ex10.fsm (27.5 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

David Chas avatar image
0 Likes"
David Chas answered

Hi!!

you don't need to use a general process flow to increment the variable. you can define local labels in the source that increase the row of the table.

I attached a model that represents the solution at your question

I hope this will be usefull to you!


12840-ex10.fsm (20.0 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.