question

Pinakin K avatar image
0 Likes"
Pinakin K asked Joshua S answered

How to update global table with Array?

I want to write the he values in Array form in the Global Table. the Array index is also not fixed, it is decided by a discrete uniform distribution with min 1 and max 5. The values for each index in the array also follow a Duniform distribution with min 1200 and max 3000.

this array would be referenced in the process flow, so it should also be a tracked variable. How should I proceed?

FlexSim 18.0.3
global tablearraytracked variables
· 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.

1 Answer

Joshua S avatar image
0 Likes"
Joshua S answered

To allow cells in a Global Table to have Array values, select the cells you want to set, then right click and follow the tabs shown in the picture below.

Then to reference that data use the following statement.

  1. Table("GlobalTable1")[Row][Column].as(Array)[Index]

Hope this helps to get started.


pic1.png (18.1 KiB)
· 4
5 |100000

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