In Match Entities Based on Attributes example when I set the Number of Entities to Select parameter to greater than 1 then there is only one entity output by Assemble Bicycle block even though Bicycle Frame block and Raw Wheel Material block generate several entities.
The Match Entities Based on Attributes example demonstrates matching two entities, Frames and Wheels, based on their attributes. When the Number of entities to select parameter is set to 2, the first output port of the Match Wheels to Frames block provides a single Frame, while the second port outputs two Wheel entities, totalling three entities to be combined. To manage this, set the Number of input ports parameter in the Assemble Bicycle block to 3. An Entity Output Switch with the Switching criterion set to Round robin can be used to split the pair of Wheel entities into two separate signals.
Additionally, the Assemble Bicycle block requires the entities to arrive simultaneously. Since there would be a time delay between the arrival of the two Wheel entities, adding Entity Server blocks to each input of the Assemble Bicycle block and setting the Service time value to 0 will address this issue. The resulting simulation output would appear as shown below.
Impossibile completare l'azione a causa delle modifiche apportate alla pagina. Ricarica la pagina per vedere lo stato aggiornato.
Translated by
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.