question

Nicole S2 avatar image
0 Likes"
Nicole S2 asked Joshua S answered

read item label at sink

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

FlexSim 17.1.6
sink label
ongoing-number.fsm (15.5 KiB)
· 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.

Jeff Nordgren avatar image Jeff Nordgren commented ·

@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 0 ·
Ralf Gruber avatar image Ralf Gruber ♦ Jeff Nordgren commented ·

@Nicole S2,

is this question referring to this post:

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

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

1 Like 1 ·

1 Answer

Joshua S avatar image
1 Like"
Joshua S answered

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


5 |100000

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