question

lorislang avatar image
0 Likes"
lorislang asked lorislang commented

Global Table Columns

global_table_issue.fsmHi everyone,

I have a question about accessing specific columns in my global table.

In my project, I have three workstations, each handling a different type of box. The boxes of type A, B and C have labels for arrivalTimeA, arrivalTimeB, arrivalTimeC, and corresponding departureTimeA, departureTimeB, departureTimeC. Each workstation has a sink, and I want to write the relevant arrival and departure times to specific columns in the global table for that station.

However, when I use the "Add Row and Data to GlobalTable" function in the second workstation, it only adds rows to the arrival and departure columns meant for the first workstation.

Could anyone explain how to correctly write data to the third and fourth columns for the second station and the fifth and sixth columns for the third station? I’d be incredibly grateful for your help! :)

FlexSim 22.0.16
global tablewrite to global table
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

Paula LG avatar image
0 Likes"
Paula LG answered lorislang commented

Hi,

Each time you add a row to a Global Table you need to specify a different value for each column. Because of that, you need to add as many fields on the activity as the total number of columns your table has. Just write a value of 0 for every column you do not wish to use and the arrivalTime and departureTime values for the ones you want to update.

For example: For the second station, add 6 fields below the "Add/Remove Columns" text. Fields 1,2,5 and 6 should be set to 0 and fields 3 and 4 to the item labels you need.

1737474875327.png

global-table-issue.fsm

I hope it helps!


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

lorislang avatar image lorislang commented ·
Thank you kindly, this helps! :)
0 Likes 0 ·