question

Prateekq4 avatar image
0 Likes"
Prateekq4 asked Jason Lightfoot commented

writing number of items of particular label to a global table

Hi, in my model, i have created items of different labels using item.type. the labels are numeric like 1,2,3... . Now when my items enter a queue i want to track the number of items of each label entering the queue. I want to write this value to a global table. So my table could look something like this:

item label no. of items
1 10
2 14
3 12

i am familiar with using the triggers to write the content value for the queue into a global table, i wanted to know what particular line of code lets me write this content based on item.type label


thank you

FlexSim 22.0.16
writing values to global table
· 2
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·
0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Hi @Prateekq4, was our answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

You can just use the bracket operator as Jörg implied but directly with the increment operators ++ or +=, or with direct assignment using =. You don't need to use the cell method to get a cell reference.

5 |100000

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