question

Alexander Muff avatar image
1 Like"
Alexander Muff asked Alexander Muff answered

How to index variables in Process Flow

I would like to repeat labels according to an index global variable:

Part 1 - Lot 1

Part 2 - Lot 1

Part 3 - Lot 1

Part 1 - Lot 2

Part 2 - Lot 2

Part 3 - Lot 2

Part 1 - Lot 3

Part 2 - Lot 3

Part 3 - Lot 3

FlexSim 16.2.0
global variablesvariable
· 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.

Steven Hamoen avatar image
2 Likes"
Steven Hamoen answered Matt Long commented

Ok that makes it a lot clearer. To get label 1 you could do:

fmod( tokenIndex - 1, 3 ) + 1;

That would give you 1,2,3,1,2,3 etc

For label 2 you could do

(tokenIndex - 0.1)/3 + 1

That would give you 1,1,1, 2,2,2 etc

· 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.

Alexander Muff avatar image
0 Likes"
Alexander Muff answered

I am using a scheduled source. Each token is getting the same partID and setID, 1.0 and 1.3


picture3.png (17.1 KiB)
picture4.png (15.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.