read item label at sink

read item label at sink

nicole_s2
Not applicable
18 Views
3 Replies
Message 1 of 4

read item label at sink

nicole_s2
Not applicable

[ FlexSim 17.1.6 ]

Hi all,

I programmed my source that all the generated items are counted ongoing and all the respective numbers are written on the labels.

Now I would like my sink to read aout the labels on the items with the respective ongoing numbers.

Is anybody able to tell me which command I have to run that the sink reads out the number on the label to me?

The Version is 17.1.2

Thank you very much!

Best regards,

Nicole

ongoing-number.fsm

0 Likes
Accepted solutions (1)
19 Views
3 Replies
Replies (3)
Message 2 of 4

jeff_nordgren
Not applicable

@Nicole S2,

I'm not sure what you mean when you say you want the sink to read out the number on the label to you. What exactly does that mean? The place you would put code to do anything concerned with the flowitem before it is destroyed by the sink would be in the OnEntry trigger of the sink.

Thanks.

0 Likes
Message 3 of 4

ralf_gruber
Collaborator
Collaborator

@Nicole S2,

is this question referring to this post:

https://answers.flexsim.com/questions/63941/ongoing-number-on-items.html?childToView=64005#comment-6...?

So you want a table with the label values at the source and another one at the sink?

Please describe more detailed, what you want to have at the end.

Thanks

Message 4 of 4

joshua_s
Not applicable
Accepted solution

This model will output the label both in a table and in the output console. All code was added in the triggers of the Sink.18283-ongoing-number.fsm