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.
Impossible de terminer l’action en raison de modifications de la page. Rechargez la page pour voir sa mise à jour.
Translated by
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.