When using global table, how to looked from column 1 and whole row

When using global table, how to looked from column 1 and whole row

az87416
Not applicable
15 Views
5 Replies
Message 1 of 6

When using global table, how to looked from column 1 and whole row

az87416
Not applicable

[ FlexSim 22.0.1 ]

Hello,

This question is about lookup the global table column 1 and whole row.

In this model, I want to ask the AGV cart to the specific rack(and each rack represent a type ), so I use the Global Table to choose the specific type.

I want lookup from Global Table(named "AssignedToRack"),but I don't know how to looked from column 1 and whole row. like: lookup row1->row2->row3...

kivasystem_1.fsm1645180210932.png

I had read more tutorial to try, but still not find the appropriate answers.

is there any smart way to do this operation?

Regards,

Kevin

0 Likes
Accepted solutions (1)
16 Views
5 Replies
Replies (5)
Message 2 of 6

moehlmann_fe
Observer
Observer
I don't quite understand your goal. What value should be assigned to the token label?

- All values from the column as an array [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
- A single value from a random row
- First token gets the first row, second the second and so on...

0 Likes
Message 3 of 6

az87416
Not applicable

Thanks for answer me.

My goal is - First token gets the first row, second the second and so on...

0 Likes
Message 4 of 6

moehlmann_fe
Observer
Observer
Accepted solution

To assign the row values to tokens in ascending order you can use the input statistic of the activity.

"getstat(activity, "Input", STAT_CURRENT)" returns the number of tokens that have entered the activity. If you combine it with the modulo operator "%" you can repeatedly return the values from 1 to 10.
(1, 2, 3, ...10, 1, 2, 3, ...)

(getstat(activity, "Input", STAT_CURRENT)%10)+1

kivasystem-2.fsm

0 Likes
Message 5 of 6

az87416
Not applicable

it's very clear! I get it.
Thanks for help

0 Likes
Message 6 of 6

az87416
Not applicable

Hello,

Thank you for your previous answer, it's a great help!

In this model, I hava other question need some help

Here is the question: https://answers.flexsim.com/questions/115619/how-to-generate-the-lable-value-from-1-to-100-must.html

0 Likes