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?
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?
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?
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.
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.
13 People are following this question.
how to get arrival rate for flow items that arrive an object or node within a time interval ?
Experimenter Triggers - Order of Execution
Why Global Table is cleared after each replication even when "clear on Reset" box is unchecked ?
What is the best way to make an OnResourceAvailable trigger fire only once?
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved