question

ALC avatar image
0 Likes"
ALC asked Ben Wilson commented

poner dos valores en la misma etiqueta distintos si entran dos items a la vez

Hola,

tengo un processor en el que entran dos objetos a la vez, ambos del mismo tipo, pero quiero que a uno le asigne un valor "x" en la etiqueta "etiqueta", y al otro un valor "y" en la misma etiqueta. ¿podrían ayudarme?

FlexSim 7.5.4
triggersflexsim 7.5.4entran dosetiquetas
· 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.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Via Google Translate:

put two different values on the same label if two items enter at the same time

I have a processor in which two objects enter at the same time, both of the same type, but I want one to assign an "x" value in the "label" tag, and the other a "y" value in the same tag. Could you help me?

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @ALC, was Ben Wilson's or Parker S's answer helpful? If so, please click the red "Accept" button on one of their answers. 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 unaccept and comment back to reopen your question.

0 Likes 0 ·
Ben Wilson avatar image
0 Likes"
Ben Wilson answered

Hi @ALC,

Do the two items always enter the processor together? If that is the case, they must be batched by something upstream, or otherwise synchronized to enter the processor at the same time?

For instance, you could use an upstream Queue with Perform Batching enabled, and a target batch size of 2. Then in the Queue's OnEndCollecting trigger you could write to the item's label according to your needs. This trigger fires once per batch, so just loop over the items currently in the queue and assign unique label values appropriately.

The attached FlexSim version 7.5.4 model demonstrates this use of the first queue's OnEndCollecting trigger. There is an onEntry trigger on the processor that changes the item color depending on the value of that label, just so you can get a bit of visual representation of what is happening. The processor also has a max content set to 2 so that both items in the batch can enter simultaneously.

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

Parker S avatar image
0 Likes"
Parker S answered

@ALC

One way this can be done is in process flow.

Hope this helps!


1607977565289.png (16.0 KiB)
1607977572951.png (17.7 KiB)
1607977580339.png (10.5 KiB)
1607977598675.png (9.6 KiB)
5 |100000

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